WebHost: fix 30 days cutoff for stats (#826)

This commit is contained in:
Fabian Dill 2022-07-27 23:09:40 +02:00 committed by GitHub
parent 489450d3fa
commit e5b868e0e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ from .models import Room
def get_db_data():
games_played = defaultdict(Counter)
total_games = Counter()
cutoff = date.today()-timedelta(days=30000)
cutoff = date.today()-timedelta(days=30)
room: Room
for room in select(room for room in Room if room.creation_time >= cutoff):
for slot in room.seed.slots: