Move organization info into game heading for Kick campaigns on dashboard
All checks were successful
Deploy to Server / deploy (push) Successful in 29s

This commit is contained in:
Joakim Hellsén 2026-06-14 21:48:54 +02:00
commit decc8ae5ab
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
3 changed files with 107 additions and 15 deletions

View file

@ -1062,8 +1062,14 @@ def dashboard(request: HttpRequest) -> HttpResponse:
"image": game_image,
"kick_id": game_kick_id,
"campaigns": [],
"organizations": [],
}
if campaign.organization:
org = campaign.organization
if org not in kick_campaigns_by_game[game_key]["organizations"]:
kick_campaigns_by_game[game_key]["organizations"].append(org)
kick_campaigns_by_game[game_key]["campaigns"].append({
"campaign": campaign,
"channels": list(campaign.channels.all()),