forked from Hanabi/hanabi-league
fix stored variant ids and streak ordering
This commit is contained in:
parent
bbbcffb8f0
commit
42aa041406
2 changed files with 2 additions and 2 deletions
|
@ -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():
|
||||
|
|
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue