listing all unused lables in admin panel, and imporvements to listing used ones
This commit is contained in:
+9
-1
@@ -111,7 +111,15 @@ def list():
|
||||
for key, value in links.items():
|
||||
if len(value['url'])>0:
|
||||
linklist.append({'code':key, 'url':value['url']})
|
||||
return render_template('list.html', linklist=linklist)
|
||||
return render_template('list.html', linklist=linklist, count=len(linklist))
|
||||
|
||||
@app.route("/empty")
|
||||
def showEmptyCodes():
|
||||
linklist = []
|
||||
for key, value in links.items():
|
||||
if value['url']=='':
|
||||
linklist.append({'code':key, 'url':value['url']})
|
||||
return render_template('listempty.html', linklist=linklist, count=len(linklist))
|
||||
|
||||
@app.route('/', defaults={'path': ''})
|
||||
@app.route('/<path:path>')
|
||||
|
||||
Reference in New Issue
Block a user