From da6a73fe8224582ab74b0dc1cccbbe909c32b337 Mon Sep 17 00:00:00 2001
From: Julian Rother <julianr@fsmpi.rwth-aachen.de>
Date: Sat, 28 Jul 2018 00:21:38 +0200
Subject: [PATCH] Small fix

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

diff --git a/livestreams.py b/livestreams.py
index 0615afd..d0d66d3 100644
--- a/livestreams.py
+++ b/livestreams.py
@@ -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'])
-- 
GitLab