From bbcba6c1296be1689079772ad26fd0671382494d Mon Sep 17 00:00:00 2001 From: cwilvx Date: Mon, 14 Oct 2024 13:47:44 +0300 Subject: [PATCH] hardcode stats date range back to a week --- app/api/scrobble/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/api/scrobble/__init__.py b/app/api/scrobble/__init__.py index 6a343b8d..06b071f6 100644 --- a/app/api/scrobble/__init__.py +++ b/app/api/scrobble/__init__.py @@ -295,9 +295,7 @@ def get_stats(): """ Get the stats for the user. """ - # now = int(datetime.now().timestamp()) - # one_week_ago = now - get_duration_in_seconds("week") - start_time, end_time = get_date_range("year") + start_time, end_time = get_date_range("week") total_tracks = StatItem( "trackcount",