diff --git a/vrobbler/apps/scrobbles/views.py b/vrobbler/apps/scrobbles/views.py index 2ef91ef..f3cf367 100644 --- a/vrobbler/apps/scrobbles/views.py +++ b/vrobbler/apps/scrobbles/views.py @@ -386,6 +386,9 @@ class ChartRecordView(TemplateView): params = {'year': year} name = f"Chart for {year}" + if not date: + date = timezone.now().strftime("%Y-%m-%d") + date_params = date.split('-') year = int(date_params[0]) if len(date_params) == 2: diff --git a/vrobbler/templates/base.html b/vrobbler/templates/base.html index 7d1a615..7bc483c 100644 --- a/vrobbler/templates/base.html +++ b/vrobbler/templates/base.html @@ -230,6 +230,12 @@ Dashboard +