Fixed winrate over time bug
This commit is contained in:
parent
9a181367c1
commit
0529819da8
1 changed files with 1 additions and 1 deletions
|
|
@ -375,7 +375,7 @@ def get_winrate_over_time(session: Session, player_name: str | None = None, day_
|
||||||
else:
|
else:
|
||||||
timeline_dict[current_date] = 0
|
timeline_dict[current_date] = 0
|
||||||
|
|
||||||
current_date == date.today()
|
current_date = date.today()
|
||||||
playplayers_at_date = list(filter(lambda playplayer: playplayer.play.play_date <= current_date, all_playplayers))
|
playplayers_at_date = list(filter(lambda playplayer: playplayer.play.play_date <= current_date, all_playplayers))
|
||||||
total_games_played = len(playplayers_at_date)
|
total_games_played = len(playplayers_at_date)
|
||||||
total_games_won = 0
|
total_games_won = 0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue