diff --git a/src/views/__init__.py b/src/views/__init__.py index 7230985e3b2ba211af6c3d9fa54c2caf33850bd2..d9945ae240c0a2ed289fce99d993be64ff276656 100644 --- a/src/views/__init__.py +++ b/src/views/__init__.py @@ -77,8 +77,5 @@ def build_current_round_json(game=None, path="frontend/current_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.game import game \ No newline at end of file diff --git a/src/views/management.py b/src/views/management.py index f062f05792be701d62aa5fac0c682ef2d7570317..0618087f0d6ea4473a69a9264493a0c450a9a173 100644 --- a/src/views/management.py +++ b/src/views/management.py @@ -67,11 +67,10 @@ def import_questin(): def create_team(): teamname = request.form.get("teamname") 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"] - path = _generate_teamlogo_path( teamlogo.filename) + path = _generate_teamlogo_path(teamlogo.filename) teamlogo.save(path) teamlogo = path elif os.path.exists(custom_teamlogo_path):