[calendar] Add boardgames to pills

This commit is contained in:
2026-05-27 14:00:42 -04:00
parent 90f3d38687
commit b4e15c73c1

View File

@ -1294,6 +1294,7 @@ class ScrobbleCalendarView(LoginRequiredMixin, TemplateView):
"Book", "Book",
"Mood", "Mood",
"Video", "Video",
"BoardGame",
] ]
MEDIA_EMOJI = { MEDIA_EMOJI = {
@ -1305,9 +1306,10 @@ class ScrobbleCalendarView(LoginRequiredMixin, TemplateView):
"Book": "📚", "Book": "📚",
"Mood": "🥰", "Mood": "🥰",
"Video": "🎬", "Video": "🎬",
"BoardGame": "🎲",
} }
DEFAULT_EXCLUDE = ["Task", "Mood", "Video", "Food"] DEFAULT_EXCLUDE = ["Task", "Mood", "Video", "Food", "BoardGame"]
MONTH_COLORS = [ MONTH_COLORS = [
"#db7a7a", # Jan "#db7a7a", # Jan
@ -1362,7 +1364,7 @@ class ScrobbleCalendarView(LoginRequiredMixin, TemplateView):
timestamp__date__lte=month_end, timestamp__date__lte=month_end,
media_type__in=active_types, media_type__in=active_types,
) )
.select_related("task", "birding_location", "food", "trail", "video_game", "book", "mood", "video") .select_related("task", "birding_location", "food", "trail", "video_game", "book", "mood", "video", "board_game")
.order_by("timestamp") .order_by("timestamp")
) )