mirror of
https://github.com/NaN-tic/flask-appstryton.git
synced 2023-12-13 20:50:27 +01:00
Tocs. Remove duplicated and sort
This commit is contained in:
parent
19b7263927
commit
3c15677d67
1 changed files with 3 additions and 1 deletions
4
app.py
4
app.py
|
@ -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('/')
|
||||
|
|
Loading…
Reference in a new issue