Fixed sort

This commit is contained in:
Halhadus 2025-04-22 01:09:36 +03:00
parent 1cb7409a28
commit 701af2c45b

View file

@ -69,7 +69,7 @@ def get_scrobbles():
'total_duration': total_durations[key],
'last_played': track['timestamp']
}
return sorted(unique_tracks.values(), key=lambda x: x['last_played'], reverse=True)
return sorted(unique_tracks.values(), key=lambda x: x['total_duration'], reverse=True)
@app.route('/swingmusicwrapped.html')
def swing_history():