From 6224a5750c7ac434a4c85623395d3d7d42af86c3 Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Wed, 8 Nov 2023 21:40:41 +0100 Subject: [PATCH] API test {} anstat %s --- Website/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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