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

This commit is contained in:
alexAubin 2024-05-24 16:44:24 +00:00 committed by github-actions[bot]
parent 32fd827795
commit 3d846f285f

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