Skip to content
Snippets Groups Projects
Commit 8c5ca13e authored by leo's avatar leo
Browse files

-pygame frontend artefacts

parent 5723067e
No related branches found
No related tags found
No related merge requests found
...@@ -77,8 +77,5 @@ def build_current_round_json(game=None, path="frontend/current_round.json"): ...@@ -77,8 +77,5 @@ def build_current_round_json(game=None, path="frontend/current_round.json"):
SOCKET.emit("round", json.dumps(round_json)) SOCKET.emit("round", json.dumps(round_json))
with open(path, "w") as file:
json.dump(round_json, file, indent=4)
from views.management import mgmt from views.management import mgmt
from views.game import game from views.game import game
\ No newline at end of file
...@@ -67,11 +67,10 @@ def import_questin(): ...@@ -67,11 +67,10 @@ def import_questin():
def create_team(): def create_team():
teamname = request.form.get("teamname") teamname = request.form.get("teamname")
custom_teamlogo_path = _generate_teamlogo_path(teamname + ".png") custom_teamlogo_path = _generate_teamlogo_path(teamname + ".png")
print(custom_teamlogo_path)
if "teamlogo" in request.files: if "teamlogo" in request.files and request.files["teamlogo"].filename:
teamlogo = request.files["teamlogo"] teamlogo = request.files["teamlogo"]
path = _generate_teamlogo_path( teamlogo.filename) path = _generate_teamlogo_path(teamlogo.filename)
teamlogo.save(path) teamlogo.save(path)
teamlogo = path teamlogo = path
elif os.path.exists(custom_teamlogo_path): elif os.path.exists(custom_teamlogo_path):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment