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

Another fix

parent d6827209
Branches
No related tags found
No related merge requests found
...@@ -156,7 +156,7 @@ def streamauth(server): ...@@ -156,7 +156,7 @@ def streamauth(server):
return 'Ok', 200 return 'Ok', 200
for lecture in query('SELECT * 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']) settings = json.loads(lecture['stream_settings'])
if source['id'] in [settings.get('source1'), settings.get('source2')]: if str(source['id']) in [str(settings.get('source1')), str(settings.get('source2'))]:
cancel_job(lecture['stream_job']) cancel_job(lecture['stream_job'])
return 'Ok', 200 return 'Ok', 200
return 'Bad request', 400 return 'Bad request', 400
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment