elkay
Browse files- utils/api.py +7 -8
utils/api.py
CHANGED
|
@@ -403,11 +403,10 @@ def send_to_chatbot(messages: list[dict]):
|
|
| 403 |
|
| 404 |
def record_money_match_play(user_id: int, target: int, total: int,
|
| 405 |
elapsed_ms: int, matched: bool, gained_xp: int):
|
| 406 |
-
|
| 407 |
-
"user_id": user_id,
|
| 408 |
-
"
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
"
|
| 412 |
-
|
| 413 |
-
}).json()
|
|
|
|
| 403 |
|
| 404 |
def record_money_match_play(user_id: int, target: int, total: int,
|
| 405 |
elapsed_ms: int, matched: bool, gained_xp: int):
|
| 406 |
+
payload = {
|
| 407 |
+
"user_id": user_id, "target": target, "total": total,
|
| 408 |
+
"elapsed_ms": elapsed_ms, "matched": matched, "gained_xp": gained_xp,
|
| 409 |
+
}
|
| 410 |
+
return _try_candidates("POST", [
|
| 411 |
+
("/games/money_match/record", {"json": payload}),
|
| 412 |
+
])
|
|
|