From: yomguy Date: Thu, 30 Jun 2011 17:26:32 +0000 (+0200) Subject: fix index state X-Git-Tag: 1.0~70 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=5021a0332da62ddb08f546e8e83ee45132e5d39e;p=telecaster-server.git fix index state --- diff --git a/telecaster/views.py b/telecaster/views.py index c9d9f72..6957020 100644 --- a/telecaster/views.py +++ b/telecaster/views.py @@ -59,7 +59,7 @@ class WebView(object): stations = Station.objects.filter(started=True) status = self.get_server_status() - if stations or (status['writing'] or status['casting']): + if stations or (status.writing or status.casting): template = 'telecaster/stop.html' # FIXME: manage multiple stations station = stations[0] @@ -101,7 +101,7 @@ class WebView(object): def get_server_status(self): status = Status() status.update() - return status.to_dict() + return status @jsonrpc_method('telecaster.get_station_status') def get_station_status_json(request):