mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
🎨 Format Python code with Black (#2366)
Co-authored-by: alexAubin <4533074+alexAubin@users.noreply.github.com>
This commit is contained in:
parent
32fd827795
commit
42893a001d
1 changed files with 10 additions and 2 deletions
12
store/app.py
12
store/app.py
|
@ -475,9 +475,17 @@ def dash():
|
|||
|
||||
# Sort by popularity by default
|
||||
stars = get_stars()
|
||||
data = dict(sorted(get_dashboard_data().items(), key=lambda app: len(stars.get(app[0], [])), reverse=True))
|
||||
data = dict(
|
||||
sorted(
|
||||
get_dashboard_data().items(),
|
||||
key=lambda app: len(stars.get(app[0], [])),
|
||||
reverse=True,
|
||||
)
|
||||
)
|
||||
|
||||
return render_template("dash.html", data=data, stars=stars, last_data_update=get_dashboard_data.mtime)
|
||||
return render_template(
|
||||
"dash.html", data=data, stars=stars, last_data_update=get_dashboard_data.mtime
|
||||
)
|
||||
|
||||
|
||||
@app.route("/charts")
|
||||
|
|
Loading…
Add table
Reference in a new issue