]> git.parisson.com Git - telecaster-server.git/commitdiff
fix index state
authoryomguy <yomguy@parisson.com>
Thu, 30 Jun 2011 17:26:32 +0000 (19:26 +0200)
committeryomguy <yomguy@parisson.com>
Thu, 30 Jun 2011 17:26:32 +0000 (19:26 +0200)
telecaster/views.py

index c9d9f7219327cdc918cf147dd86fa3ccb94ee84f..6957020c4d8dbd14a2a43b7a7a7116b6f641e78c 100644 (file)
@@ -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):