Corrected column name

This commit is contained in:
dave 2014-08-26 16:33:46 -07:00
parent 7e31f4a3f9
commit 188e8ae17d
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"=? ;', [status, streamid])
db.execute('UPDATE "streams" SET "status"=? WHERE "id"=? ;', [status, streamid])
return json.dumps({"result":True})
@cherrypy.expose