Skip to content

Commit

Permalink
fix paywall type problem for new machine additions
Browse files Browse the repository at this point in the history
  • Loading branch information
NinaWie committed Aug 5, 2023
1 parent 2b90a32 commit 0c51b03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,8 @@ def create_machine():
except ValueError:
# just put the multimachine as a string, we need to correct it then
multimachine = str(request.args.get("multimachine"))
try:
paywall = bool(int(request.args.get("paywall")))
except ValueError:
paywall = str(request.args.get("paywall"))

paywall = True if request.args.get("paywall") == "true" else False

# set unique branch name
branch_name = f'new_machine_{round(time.time())}'
Expand Down
2 changes: 1 addition & 1 deletion data/server_locations.json
Original file line number Diff line number Diff line change
Expand Up @@ -2333,7 +2333,7 @@
"geometry": {
"type": "Point",
"coordinates": [
-111.0993760,
-111.099376,
44.65901618
]
},
Expand Down

0 comments on commit 0c51b03

Please sign in to comment.