Skip to content

Commit

Permalink
Fix fail_time in stats.restore()
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekuruu committed Oct 14, 2023
1 parent 1fc07cd commit fe82508
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions database/repositories/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def restore(user_id: int) -> None:
.filter(DBScore.status == 1) \
.scalar()

if not fail_times:
fail_times = 0

map_times = session.query(
DBScore,
func.sum(DBBeatmap.total_length)
Expand Down

0 comments on commit fe82508

Please sign in to comment.