fix the most oh my stink bug ever
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user