Commit b7fceca5 authored by Julian Rother's avatar Julian Rother
Browse files

Removed invisible items from courses panels

parent 4a3fdf61
......@@ -335,7 +335,7 @@ def index():
if item['type'] == 'courses':
if item['param'] not in ['title', 'semester', 'organizer', 'subject']:
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)
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