Changed status arg name
This commit is contained in:
parent
6d52163509
commit
a6f8901c12
2
app.py
2
app.py
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue