chore: fix related books + deduplication
- fixed total plays formatting - formatted queries - improved proxy server
This commit is contained in:
parent
ab50866bb8
commit
d2c4c78ff7
40 changed files with 985 additions and 1357 deletions
|
@ -9,8 +9,8 @@ WITH latest_listen AS (
|
|||
ROW_NUMBER() OVER (ORDER BY l.listened_at DESC) AS row_num
|
||||
FROM
|
||||
listens l
|
||||
JOIN artists a ON l.artist_name = a.name_string
|
||||
LEFT JOIN genres g ON a.genres = g.id
|
||||
JOIN artists a ON l.artist_name = a.name_string
|
||||
LEFT JOIN genres g ON a.genres = g.id
|
||||
)
|
||||
SELECT
|
||||
track_name,
|
||||
|
@ -21,4 +21,5 @@ SELECT
|
|||
FROM
|
||||
latest_listen
|
||||
WHERE
|
||||
row_num = 1;
|
||||
row_num = 1;
|
||||
|
||||
|
|
Reference in a new issue