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
|
return jsonify({"error": "Failed to contact db"}), 500
|
||||||
|
|
||||||
try:
|
try:
|
||||||
cursor = connection.cursor(dictionary:true)
|
cursor = connection.cursor(dictionary=True)
|
||||||
user_data = {
|
user_data = {
|
||||||
|
|
||||||
"UserID" : str(uuid.uuid4()),
|
"UserID" : str(uuid.uuid4()),
|
||||||
@@ -66,6 +66,7 @@ def tiropit_add_user():
|
|||||||
"FriendCode" : friend_code,
|
"FriendCode" : friend_code,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print(user_data)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -90,6 +91,7 @@ def tiropit_add_user():
|
|||||||
if connection.is_connected():
|
if connection.is_connected():
|
||||||
cursor.close()
|
cursor.close()
|
||||||
connection.close()
|
connection.close()
|
||||||
|
return jsonify({"error": "An unexpected server error occurred."}), 500
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user