From 95f0573f434644ba2072867a52b50301d9a5ffcd Mon Sep 17 00:00:00 2001
From: Julian Rother <julianr@fsmpi.rwth-aachen.de>
Date: Sat, 28 Jul 2018 00:45:32 +0200
Subject: [PATCH] Another fix

---
 livestreams.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/livestreams.py b/livestreams.py
index 966539e..10c1606 100644
--- a/livestreams.py
+++ b/livestreams.py
@@ -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'))]:
 				cancel_job(lecture['stream_job'])
 		return 'Ok', 200
 	return 'Bad request', 400
-- 
GitLab