rearrange stat items

This commit is contained in:
cwilvx
2024-10-13 20:04:10 +03:00
parent 2c6daf353c
commit ee67e87532
2 changed files with 7 additions and 2 deletions
+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,
]
}