Changed status arg name

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

2
app.py
View File

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