diff --git a/server.py b/server.py index d89caabe1b7ea5caafb14d2ef5aad522e3727372..315881ff77525d194fe4bde215c1f9a1ebd169b3 100644 --- a/server.py +++ b/server.py @@ -335,7 +335,7 @@ def index(): if item['type'] == 'courses': if item['param'] not in ['title', 'semester', 'organizer', 'subject']: continue - item['courses'] = query('SELECT * FROM courses WHERE (? OR (visible AND listed)) AND `%s` = ? ORDER BY `%s`'%(item['param'], item['param']), ismod(), item['param2']) + item['courses'] = query('SELECT * FROM courses WHERE (visible AND listed) AND `%s` = ? ORDER BY `%s`'%(item['param'], item['param']), item['param2']) return render_template('index.html', latestvideos=livestreams+latestvideos, upcomming=upcomming, featured=featured, newfeatured=newfeatured) @app.route('/course')