mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
rearrange stat items
This commit is contained in:
@@ -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,
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user