bugfix playlist

This commit is contained in:
iou1name 2025-02-12 09:20:38 -05:00
parent d6026567f7
commit 35a184af47

View File

@ -16,7 +16,7 @@ async def get_random_track(request, playlist_name=""):
"SELECT * FROM track "
"LEFT JOIN playlist_track ON (track.filepath = playlist_track.filepath) "
"LEFT JOIN playlist ON (playlist_track.playlist_id = playlist.id) "
"WHERE playlist.name = $1ORDER BY random() LIMIT 1",
"WHERE playlist.name = $1 ORDER BY random() LIMIT 1",
playlist_name)
else:
track = await conn.fetchrow(