From 5021a0332da62ddb08f546e8e83ee45132e5d39e Mon Sep 17 00:00:00 2001 From: yomguy Date: Thu, 30 Jun 2011 19:26:32 +0200 Subject: [PATCH] fix index state --- telecaster/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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): -- 2.39.5