b1: api — /img/{id}?i=n gallery chain (mirrored file -> CDN 302 -> 404; i=0 legacy), payload n_photos + last_photo_idx on deck/list/listing/section rows, POST /api/swipe persists optional photo_idx
This commit is contained in:
@@ -416,7 +416,8 @@ def close_section(conn, section, now, status='closed',
|
||||
|
||||
def section_items(conn, section):
|
||||
return conn.execute(
|
||||
"""SELECT l.*, s.action AS decision, si.slot, si.position
|
||||
"""SELECT l.*, s.action AS decision, s.last_photo_idx AS last_photo_idx,
|
||||
si.slot, si.position
|
||||
FROM section_items si
|
||||
JOIN listings l ON l.id = si.listing_id
|
||||
LEFT JOIN swipes s ON s.listing_id = l.id
|
||||
|
||||
Reference in New Issue
Block a user