[calendar] Kidding, only locations without a title
All checks were successful
build & deploy / test (push) Successful in 1m53s
build & deploy / build-and-deploy (push) Successful in 30s

This commit is contained in:
2026-05-27 14:27:37 -04:00
parent 301440909b
commit 72fd1ab90e

View File

@ -1376,7 +1376,7 @@ class ScrobbleCalendarView(LoginRequiredMixin, TemplateView):
timestamp__date__gte=month_start,
timestamp__date__lte=month_end,
)
.exclude(media_type="GeoLocation")
.exclude(media_type="GeoLocation", title__isnull=True)
.annotate(local_date=TruncDate("timestamp", tzinfo=timezone.get_current_timezone()))
.values("local_date")
.annotate(count=Count("id"))