Skip to content
Snippets Groups Projects
Commit da6a73fe authored by Julian Rother's avatar Julian Rother
Browse files

Small fix

parent 11ffa116
Branches
No related tags found
No related merge requests found
......@@ -154,7 +154,7 @@ def streamauth(server):
modify('UPDATE live_sources SET server = NULL, clientid = NULL, preview_key = NULL, last_active = ? WHERE server = ? AND clientid = ?', datetime.now(), server, request.values['clientid'])
if not source:
return 'Ok', 200
for lecture in query('SELECT lectures FROM lectures WHERE stream_job IS NOT NULL'):
for lecture in query('SELECT * FROM lectures WHERE stream_job IS NOT NULL'):
settings = json.loads(lecture['stream_settings'])
if source['id'] in [settings.get('source1'), settings.get('source2')]:
cancel_job(lecture['stream_job'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment