summaryrefslogtreecommitdiff
path: root/program/management/commands/update_hosts.py
diff options
context:
space:
mode:
Diffstat (limited to 'program/management/commands/update_hosts.py')
-rw-r--r--program/management/commands/update_hosts.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/program/management/commands/update_hosts.py b/program/management/commands/update_hosts.py
index 22e0596..e19d8ed 100644
--- a/program/management/commands/update_hosts.py
+++ b/program/management/commands/update_hosts.py
@@ -9,13 +9,13 @@ class Command(NoArgsCommand):
def handle_noargs(self, **options):
for host in Host.objects.all():
for show in host.shows.all():
- hosts_active_show = None
- if show.has_active_programslots:
- hosts_active_show = True
+ is_active = None
+ if show.is_active:
+ is_active = True
else:
- hosts_active_show = False
+ is_active = False
- host.hosts_active_show = hosts_active_show
+ host.is_active = is_active
- if not hosts_active_show:
+ if not is_active:
host.save()