mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
fix: stat wrong key
This commit is contained in:
+1
-1
@@ -203,7 +203,7 @@ def get_track_group_stats(tracks: list[Track], is_album: bool = False):
|
|||||||
f"{unplayed_count}/{len(tracks)} tracks",
|
f"{unplayed_count}/{len(tracks)} tracks",
|
||||||
)
|
)
|
||||||
|
|
||||||
play_duration = sum(track.duration for track in played_tracks)
|
play_duration = sum(track.playduration for track in played_tracks)
|
||||||
play_duration_stat = StatItem(
|
play_duration_stat = StatItem(
|
||||||
"play_duration",
|
"play_duration",
|
||||||
"listened all time",
|
"listened all time",
|
||||||
|
|||||||
Reference in New Issue
Block a user