deployment problems ;(

This commit is contained in:
2020-10-14 23:11:00 -04:00
parent 76e01fce2e
commit 0a10b2a076
3 changed files with 7 additions and 6 deletions
+3 -3
View File
@@ -10,7 +10,7 @@ import json
# Loading logging preferences
with open("logger.json", "r") as f:
with open("src/logger.json", "r") as f:
dconf = json.load(f)
# Establishing logger
@@ -44,7 +44,7 @@ def host():
hash = dohash(hostcode)
resp = redirect(url_for("play", hash=hash))
resp.set_cookie("_gid", str(hostcode))
with open("templates/games.json", "r") as f:
with open("src/templates/games.json", "r") as f:
tmp = json.load(f)
games[hash] = tmp
games[hash]["hostcode"] = hostcode
@@ -57,7 +57,7 @@ def host():
session.permanent = True
return resp
with open("templates/games.json", "r") as f:
with open("src/templates/games.json", "r") as f:
tmp = json.load(f)
default = [tmp["tossup"], tmp["bonus"], tmp["power"], tmp["negs"]]
return render_template('host.html', title="Host Game", version=str(version), form=form, default=default)