diff --git a/Website/__init__.py b/Website/__init__.py index 335e60c..ee754f9 100644 --- a/Website/__init__.py +++ b/Website/__init__.py @@ -340,7 +340,7 @@ def create_app(test_config=None): app.logger.info(message) finished = queue_item db.commit() - return make_response(json.dumps({"mode":"message","username":"%s".format(username),"message":"A tag was added"})) + return make_response(json.dumps({"mode":"message","username":"{}".format(username),"message":"A tag was added"})) elif state == "remove": c.execute(f"SELECT * FROM tags WHERE (tagid = {tag_id} AND userid = ?)", [user]) tags = c.fetchall() @@ -350,7 +350,7 @@ def create_app(test_config=None): app.logger.info(message) finished = queue_item db.commit() - return make_response(json.dumps({"mode":"message","username":"%s".format(username),"message":"A tag was removed"})) + return make_response(json.dumps({"mode":"message","username":"{}".format(username),"message":"A tag was removed"})) else: message = "054" finished = queue_item