CC-6054: live-info-v2 returns future shows without ordering by start time
This commit is contained in:
parent
02d49864fa
commit
23dd6d4021
1 changed files with 3 additions and 3 deletions
|
@ -1157,13 +1157,13 @@ WHERE si.show_id = s.id
|
||||||
AND si.starts >= :timeNow::timestamp - INTERVAL '2 days'
|
AND si.starts >= :timeNow::timestamp - INTERVAL '2 days'
|
||||||
AND si.starts < :timeEnd::timestamp
|
AND si.starts < :timeEnd::timestamp
|
||||||
AND modified_instance != TRUE
|
AND modified_instance != TRUE
|
||||||
ORDER BY
|
ORDER BY
|
||||||
CASE
|
CASE
|
||||||
WHEN si.ends > :timeNow::timestamp
|
WHEN si.ends > :timeNow::timestamp
|
||||||
AND si.starts < :timeNow::timestamp THEN 1
|
AND si.starts < :timeNow::timestamp THEN 1
|
||||||
WHEN si.starts > :timeNow::timestamp THEN 2
|
WHEN si.starts > :timeNow::timestamp THEN 2
|
||||||
ELSE 3
|
ELSE 3
|
||||||
END
|
END, si.starts
|
||||||
LIMIT :lim
|
LIMIT :lim
|
||||||
SQL;
|
SQL;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue