Tocs. Remove duplicated and sort

This commit is contained in:
resteve 2013-05-22 10:12:31 +02:00
parent 19b7263927
commit 3c15677d67

4
app.py
View file

@ -116,7 +116,9 @@ def get_modules():
mod['toc'] = name_toc
mods.append(mod)
modules = sorted(mods, key=lambda k: k['name'])
modules = sorted(mods, key=lambda k: k['name'])
tocs = list(set(tocs))
tocs.sort()
return modules, tocs
@app.route('/')