Skip to content
Snippets Groups Projects
Commit b7fceca5 authored by Julian Rother's avatar Julian Rother
Browse files

Removed invisible items from courses panels

parent 4a3fdf61
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment