Kerikim commited on
Commit
aa227f6
·
1 Parent(s): 6417329
Files changed (1) hide show
  1. 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
- return _req("POST", "/games/money_match/record", json={
407
- "user_id": user_id,
408
- "target": target,
409
- "total": total,
410
- "elapsed_ms": elapsed_ms,
411
- "matched": matched,
412
- "gained_xp": gained_xp,
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
+ ])