[calendar] Kidding, only locations without a title
This commit is contained in:
@ -1376,7 +1376,7 @@ class ScrobbleCalendarView(LoginRequiredMixin, TemplateView):
|
|||||||
timestamp__date__gte=month_start,
|
timestamp__date__gte=month_start,
|
||||||
timestamp__date__lte=month_end,
|
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()))
|
.annotate(local_date=TruncDate("timestamp", tzinfo=timezone.get_current_timezone()))
|
||||||
.values("local_date")
|
.values("local_date")
|
||||||
.annotate(count=Count("id"))
|
.annotate(count=Count("id"))
|
||||||
|
|||||||
Reference in New Issue
Block a user