Fix typo in dashboard_view to exclude campaigns with state "TESTING"
All checks were successful
Deploy to Server / deploy (push) Successful in 21s

This commit is contained in:
Joakim Hellsén 2026-04-01 14:20:24 +02:00
commit c9522f9d3d
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
2 changed files with 63 additions and 1 deletions

View file

@ -31,7 +31,7 @@ def dashboard_view(request: HttpRequest) -> HttpResponse:
active_campaigns: QuerySet[models.ChzzkCampaign, models.ChzzkCampaign] = (
models.ChzzkCampaign.objects
.filter(end_date__gte=timezone.now())
.exclude(status="TESTING")
.exclude(state="TESTING")
.order_by("-start_date")
)
return render(