Add chart view when not auth'd

This commit is contained in:
2023-03-10 11:30:23 -05:00
parent 489d8b9152
commit d79159670e
2 changed files with 9 additions and 7 deletions

View File

@ -117,9 +117,11 @@ class RecentScrobbleList(ListView):
"year": list(live_charts(**track, chart_period="year")),
"all": list(live_charts(**track)),
}
data["counts"] = scrobble_counts(user)
else:
data["weekly_data"] = week_of_scrobbles()
data["counts"] = scrobble_counts()
# data["weekly_data"] = week_of_scrobbles(user=user)
data["counts"] = scrobble_counts(user)
data["imdb_form"] = ScrobbleForm
data["export_form"] = ExportScrobbleForm
return data