From aa2c999702dadba2afbcf2be9f597f890aafcc87 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Fri, 16 Apr 2021 16:56:23 +0200 Subject: fix api/game/accept --- api/rating.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'api/rating.py') 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 -- cgit v1.2.3