From afbdf709cc4223088e73dc943f6196151835a486 Mon Sep 17 00:00:00 2001
From: Andreas <andreasv@fsmpi.rwth-aachen.de>
Date: Wed, 26 Jul 2017 00:58:45 +0200
Subject: [PATCH] sql syntax error

---
 livestreams.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/livestreams.py b/livestreams.py
index 60028f8..2300125 100644
--- a/livestreams.py
+++ b/livestreams.py
@@ -2,11 +2,7 @@ from server import *
 
 @sched_func(30)
 def livestream_thumbnail():
-	livestreams = query('''SELECT streams.lecture_id
-			FROM streams
-			JOIN lectures ON lectures.id = streams.lecture_id
-			WHERE streams.active)
-			''')
+	livestreams = query('SELECT streams.lecture_id FROM streams WHERE streams.active')
 
 	for v in genlive(livestreams):
 		sorter.schedule_thumbnail(v['lecture_id'], v['path'])
-- 
GitLab