Move organization info into game heading for Kick campaigns on dashboard
All checks were successful
Deploy to Server / deploy (push) Successful in 29s
All checks were successful
Deploy to Server / deploy (push) Successful in 29s
This commit is contained in:
parent
64a622b6fa
commit
decc8ae5ab
3 changed files with 107 additions and 15 deletions
|
|
@ -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()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue