Fixed sort
This commit is contained in:
parent
1cb7409a28
commit
701af2c45b
1 changed files with 1 additions and 1 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Reference in a new issue