Skip to content

Commit

Permalink
[db] Fix recent track query
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonVanAssche committed Nov 30, 2024
1 parent 1be0a9e commit a51fb2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jamjar/core/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,9 +521,9 @@ def fetch_recent_tracks(self, limit: int = 10) -> List[dict]:
with self.connection:
rows = self.connection.execute(
"""
SELECT p.name, t.name, t.artist, t.user_added, t.time_added
SELECT p.playlist_name, t.track_name, t.artist_name, t.user_added, t.time_added
FROM spotify_tracks t
JOIN playlists p ON t.playlist_id = p.id
JOIN spotify_playlist p ON t.playlist_id = p.playlist_id
ORDER BY t.time_added DESC
LIMIT ?
""",
Expand Down

0 comments on commit a51fb2a

Please sign in to comment.