Commit cb12c4ca authored by Julian Rother's avatar Julian Rother

Update last_active when stream ends

parent 55f7d079
......@@ -149,6 +149,6 @@ def streamauth(server):
return 'Ok', 200
return 'Forbidden', 403
elif request.values['call'] == 'publish_done':
modify('UPDATE live_sources SET server = NULL, clientid = NULL, preview_key = NULL WHERE server = ? AND clientid = ?', server, request.values['clientid'])
modify('UPDATE live_sources SET server = NULL, clientid = NULL, preview_key = NULL, last_active = ? WHERE server = ? AND clientid = ?', datetime.now(), server, request.values['clientid'])
return 'Ok', 200
return 'Bad request', 400
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment