Update app.py
Browse files
app.py
CHANGED
|
@@ -28,13 +28,13 @@ def get_or_create_account(platform, udid):
|
|
| 28 |
return jsonify({
|
| 29 |
"success": True,
|
| 30 |
"object": {
|
| 31 |
-
"account":
|
| 32 |
"id": account["id"],
|
| 33 |
"timestamp": account["timestamp"],
|
| 34 |
"udid": account["udid"],
|
| 35 |
"platform": account["platform"],
|
| 36 |
"credit": account["credit"]
|
| 37 |
-
}
|
| 38 |
},
|
| 39 |
"error": None
|
| 40 |
})
|
|
@@ -51,13 +51,13 @@ def get_or_create_account(platform, udid):
|
|
| 51 |
return jsonify({
|
| 52 |
"success": True,
|
| 53 |
"object": {
|
| 54 |
-
"account":
|
| 55 |
"id": new_account["id"],
|
| 56 |
"timestamp": new_account["timestamp"],
|
| 57 |
"udid": new_account["udid"],
|
| 58 |
"platform": new_account["platform"],
|
| 59 |
"credit": new_account["credit"]
|
| 60 |
-
}
|
| 61 |
},
|
| 62 |
"error": None
|
| 63 |
}), 201
|
|
|
|
| 28 |
return jsonify({
|
| 29 |
"success": True,
|
| 30 |
"object": {
|
| 31 |
+
"account": { # Liste değil direkt account objesi
|
| 32 |
"id": account["id"],
|
| 33 |
"timestamp": account["timestamp"],
|
| 34 |
"udid": account["udid"],
|
| 35 |
"platform": account["platform"],
|
| 36 |
"credit": account["credit"]
|
| 37 |
+
}
|
| 38 |
},
|
| 39 |
"error": None
|
| 40 |
})
|
|
|
|
| 51 |
return jsonify({
|
| 52 |
"success": True,
|
| 53 |
"object": {
|
| 54 |
+
"account": { # Liste değil direkt account objesi
|
| 55 |
"id": new_account["id"],
|
| 56 |
"timestamp": new_account["timestamp"],
|
| 57 |
"udid": new_account["udid"],
|
| 58 |
"platform": new_account["platform"],
|
| 59 |
"credit": new_account["credit"]
|
| 60 |
+
}
|
| 61 |
},
|
| 62 |
"error": None
|
| 63 |
}), 201
|