fix stored variant ids and streak ordering

This commit is contained in:
Maximilian Keßler 2023-12-08 12:46:27 +01:00
parent bbbcffb8f0
commit 42aa041406
Signed by: max
GPG Key ID: BCC5A619923C0BA5
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ def process_game_entry(game_json: Dict, username_dict: Dict, variant_ids: List[i
return
user_ids.append(user_id)
return GameInfo(game_id, num_players, 0, seed, score, num_turns, user_ids, normalized_usernames)
return GameInfo(game_id, num_players, var_id, seed, score, num_turns, user_ids, normalized_usernames)
def fetch_games_for_all_players():

View File

@ -259,7 +259,7 @@ def get_streak_list():
" GROUP BY (user_accounts.user_id, player_name, maximum_streak, current_streak) "
" ) AS streaks "
# As a tiebreak, just sort by player name for now for determinancy
"ORDER BY maximum_streak, player_name",
"ORDER BY maximum_streak DESC, player_name",
(", ", rating_type)
)
for (player_name, user_accounts, max_streak, current_streak) in cur.fetchall():