Corrected status variable

This commit is contained in:
dave 2014-08-26 16:32:48 -07:00
parent a6f8901c12
commit 7e31f4a3f9
1 changed files with 1 additions and 1 deletions

2
app.py
View File

@ -128,7 +128,7 @@ if __name__ == '__main__' or 'uwsgi' in __name__:
@cherrypy.expose
def changeStatus(self, streamid, status):
streamid = int(streamid)
db.execute('UPDATE "streams" SET "status"=? WHERE "ud"=? ;', [newStatus, streamid])
db.execute('UPDATE "streams" SET "status"=? WHERE "ud"=? ;', [status, streamid])
return json.dumps({"result":True})
@cherrypy.expose