Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select correct section of history for displaying recently played songs. #55

Merged
merged 1 commit into from Dec 5, 2011

Conversation

medwards
Copy link
Contributor

@medwards medwards commented Dec 5, 2011

The recently played song list is selected from the history using the created_at column which defaults (at least on my setup) to ascending which means you get the oldest songs in the history.

Instead, select in descending order X+1 records (the +1 is for the song which is currently playing). Then reverse the order so they go in ascending order when displayed and remove the current song (the last element in the collection).

holman added a commit that referenced this pull request Dec 5, 2011
Select correct section of history for displaying recently played songs.
@holman holman merged commit 5ffded8 into play:master Dec 5, 2011
@holman
Copy link
Member

holman commented Dec 5, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants