mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-01-31 22:53:37 +00:00
Optimized the history saving and scrobbling functions
This commit is contained in:
@@ -40,9 +40,6 @@ public interface QueueDao {
|
||||
@Query("UPDATE queue SET playing_changed=:timestamp WHERE id=:id")
|
||||
void setPlayingChanged(String id, long timestamp);
|
||||
|
||||
@Query("SELECT track_order FROM queue ORDER BY last_play DESC LIMIT 1")
|
||||
int getLastPlay();
|
||||
|
||||
@Query("SELECT playing_changed FROM queue ORDER BY last_play DESC LIMIT 1")
|
||||
long getLastPlayedTimestamp();
|
||||
@Query("SELECT * FROM queue ORDER BY last_play DESC LIMIT 1")
|
||||
Queue getLastPlayed();
|
||||
}
|
||||
Reference in New Issue
Block a user