Commit 8816ffd9 authored by Julian Rother's avatar Julian Rother

Replace new_featured with create

parent 51ddd517
......@@ -257,7 +257,8 @@ tabs = {
'internal', 'speaker', 'place', 'time', 'duration', 'jumplist','deleted']),
'videos': ('videos_data', 'id', ['visible','deleted']),
'chapters': ('chapters', 'id', ['time', 'text', 'visible', 'deleted']),
'announcements': ('announcements', 'id', ['text', 'internal', 'level', 'visible', 'deleted'])
'announcements': ('announcements', 'id', ['text', 'internal', 'level', 'visible', 'deleted']),
'featured': ('featured', 'id', ['title', 'text', 'internal', 'visible', 'deleted'])
}
@app.route('/edit', methods=['GET', 'POST'])
......@@ -384,15 +385,6 @@ def suggest_chapter(lectureid):
return redirect(request.values['ref'])
return 'OK', 200
@app.route('/newfeatured', methods=['POST', 'GET'])
@mod_required
def new_featured():
id = modify('INSERT INTO featured (time_created, time_updated, created_by) VALUES (?, ?, ?)',
datetime.now(), datetime.now(), session.get('user', {'dbid':None})['dbid'])
if 'ref' in request.values:
return redirect(request.values['ref'])
return id, 200
@app.route('/sitemap.xml')
def sitemap():
pages=[]
......
Markdown is supported
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