[calendar] Exclude locations from count

This commit is contained in:
2026-05-27 14:26:44 -04:00
parent 389641002d
commit 301440909b

View File

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