From 2f20bb265d9eb29c25b6e55bef9631e6dcc43dd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Wed, 7 Jan 2026 21:13:19 +0100 Subject: [PATCH] Update campaign count handling in channel list view and template --- templates/twitch/channel_list.html | 2 +- twitch/views.py | 18 ++++++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/templates/twitch/channel_list.html b/templates/twitch/channel_list.html index dba3bc9..ee034a6 100644 --- a/templates/twitch/channel_list.html +++ b/templates/twitch/channel_list.html @@ -38,7 +38,7 @@ href="{% url 'twitch:channel_detail' channel.twitch_id %}">{{ channel.display_name }} {{ channel.name }} - {{ channel.campaign_count }} + {{ channel.campaign_count|default:0 }}