listing all unused lables in admin panel, and imporvements to listing used ones

This commit is contained in:
2018-10-17 15:52:26 +02:00
parent 7b7c1145ab
commit b77c030ff0
3 changed files with 21 additions and 2 deletions
+9 -1
View File
@@ -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>')