1
0
Fork 0
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:
github-actions[bot] 2024-05-24 18:46:04 +02:00 committed by GitHub
parent 32fd827795
commit 42893a001d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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")