rearrange stat items

This commit is contained in:
cwilvx committed 2024-10-13 20:04:10 +03:00
1 parent 2c6daf353c
commit ee67e87532
2 files changed
+7 -2

No files matched your search

+4 -1
View File
@@ -223,6 +223,9 @@ def get_top_artists(query: ChartItemsQuery):
"help_text": get_help_text(
artist["playcount"], artist["playduration"], query.order_by
),
"extra": {
"playcount": artist["playcount"],
},
}
response.append(artist)
@@ -327,9 +330,9 @@ def get_stats():
return {
"stats": [
top_track,
last_7_days_playcount,
last_7_days_playduration,
total_tracks,
top_track,
]
}