Fix typo in dashboard_view to exclude campaigns with state "TESTING"
All checks were successful
Deploy to Server / deploy (push) Successful in 21s
All checks were successful
Deploy to Server / deploy (push) Successful in 21s
This commit is contained in:
parent
204f12bb9d
commit
c9522f9d3d
2 changed files with 63 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue