Skip to content

Commit

Permalink
Added Back: Playlist Order By
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurVardevanyan committed Oct 3, 2021
1 parent f422034 commit bfac086
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webBackend/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ def playlistSongs(request):
AS played1 ON played1.songID = songs.id\
WHERE playcount.user = "'+spotifyID + '"\
and playlists.playlistID = "'+playlist[0] + '"\
GROUP BY songs.id'
GROUP BY songs.id \
ORDER BY `timePlayed` ASC'
cursor = connection.cursor()
cursor.execute(query)
json_data = dictfetchall(cursor)
Expand Down

0 comments on commit bfac086

Please sign in to comment.