[widgets] Fix music aggregator
All checks were successful
build & deploy / test (push) Successful in 1m48s
build & deploy / deploy (push) Successful in 22s

This commit is contained in:
2026-03-31 17:37:06 -04:00
parent 0a74c692d2
commit c5b7e57005
2 changed files with 14 additions and 8 deletions

View File

@ -1012,14 +1012,14 @@ class EmbeddableTopArtistsWidget(TemplateView):
parsed_date = None
if parsed_date:
now = parsed_date
now = datetime.combine(parsed_date, datetime.min.time())
now = timezone.make_aware(now)
else:
now = timezone.now().date()
now = timezone.now()
else:
now = timezone.now()
if user.is_authenticated:
now = now_user_timezone(user.profile)
now = now.date()
period = self.kwargs.get("period", "week")
if period == "month":