From 2e328167e81a1274fc69ae3b5b6dea8b5b73ebe5 Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Wed, 21 Jun 2023 21:11:25 +0200 Subject: [PATCH] api fix --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index ecb44e1..5ff5bf8 100644 --- a/main.py +++ b/main.py @@ -278,7 +278,7 @@ def get_id(): c.execute(f"SELECT * FROM users WHERE id={user}") username = c.fetchall()[0][1] conn.commit() - return make_response(json({"mode":"2","username":username,"code":"2"})) + return make_response(json.dumps({"mode":"2","username":username,"code":"2"})) else: message = "Tag does not exist" finished = queue_item