start controller view

This commit is contained in:
bkfox
2015-11-09 18:19:47 +01:00
parent ecde02725e
commit 4fbd30a460
8 changed files with 232 additions and 10 deletions

View File

@ -105,11 +105,19 @@ class Command (BaseCommand):
)
}
def liquid_station (self, station):
station.streams = [
self.liquid_stream(stream)
for stream in models.Stream.objects.filter(
program__active = True, program__station = station
)
]
return station
def get_config (self, output = None):
context = {
'streams': [
self.liquid_stream(stream)
for stream in models.Stream.objects.filter(program__active = True)
'stations': [ self.liquid_station(station)
for station in models.Station.objects.filter(active = True)
],
'settings': settings,
}