Commit 95f0573f authored by Julian Rother's avatar Julian Rother
Browse files

Another fix

parent d6827209
......@@ -156,7 +156,7 @@ def streamauth(server):
return 'Ok', 200
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')]:
if str(source['id']) in [str(settings.get('source1')), str(settings.get('source2'))]:
return 'Ok', 200
return 'Bad request', 400
Supports Markdown
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