diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-04-16 16:56:23 +0200 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-04-16 16:56:23 +0200 |
commit | aa2c999702dadba2afbcf2be9f597f890aafcc87 (patch) | |
tree | 72828d9d478b2f839f78e65d143bf4363f4ed8af /api/rating.py | |
parent | b9e1d1537bb9b8b178d9d6cb7aca06d8cfc068a4 (diff) |
fix api/game/accept
Diffstat (limited to 'api/rating.py')
-rw-r--r-- | api/rating.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api/rating.py b/api/rating.py index 5295f0d..406969b 100644 --- a/api/rating.py +++ b/api/rating.py @@ -13,9 +13,9 @@ def rating_v1(won_games): # python is a garbage language def get_all_games(user_id): return cursor.execute("select player_1_id, player_2_id, outcome " + \ - "from games " + \ - "where (player_1_id = ? or player_2_id = ?) " + \ - "and status = \"finished\" or status = \"resign\"", [user_id, user_id]).fetchall() + "from games " + \ + "where (player_1_id = ? or player_2_id = ?) " + \ + "and status = \"finished\" or status = \"resign\"", [user_id, user_id]).fetchall() # simple rating function that doesn't use game analysis |