Fix status display on single stream view

This commit is contained in:
dave 2014-08-26 16:17:01 -07:00
parent 64a2b0df9e
commit 7ce2c91a84
1 changed files with 2 additions and 0 deletions

2
app.py
View File

@ -117,6 +117,8 @@ if __name__ == '__main__' or 'uwsgi' in __name__:
for stream in streamList:
stream["time"] = db.execute('SELECT * FROM "times" WHERE streamid=?', [stream["id"]])[0]
stream["files"]=self._getFiles(id)
stream["recorder_status"] = self.REC.streamStatus(stream["id"])
stream["is_running"] = stream["recorder_status"] not in [0, -1] # idle states
return streamList[0]
@cherrypy.expose