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
2
app.py
2
app.py
|
@ -117,6 +117,8 @@ def get_modules():
|
|||
mods.append(mod)
|
||||
|
||||
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