From 42b79616590fd85ad91743c72df30f7568d2c197 Mon Sep 17 00:00:00 2001 From: KevinKor01 Date: Sat, 6 Sep 2025 17:13:44 +0300 Subject: [PATCH] fix the most oh my stink bug ever --- API/Tiri.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/API/Tiri.py b/API/Tiri.py index 8112d92..e67c115 100644 --- a/API/Tiri.py +++ b/API/Tiri.py @@ -47,7 +47,7 @@ def tiropit_add_user(): return jsonify({"error": "Failed to contact db"}), 500 try: - cursor = connection.cursor(dictionary:true) + cursor = connection.cursor(dictionary=True) user_data = { "UserID" : str(uuid.uuid4()), @@ -66,6 +66,7 @@ def tiropit_add_user(): "FriendCode" : friend_code, } + print(user_data) @@ -90,6 +91,7 @@ def tiropit_add_user(): if connection.is_connected(): cursor.close() connection.close() + return jsonify({"error": "An unexpected server error occurred."}), 500