+ Китай
All checks were successful
continuous-integration/drone/push Build is passing

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-25 15:45:35 +10:00
parent 9eb6f91b3b
commit ca9df3ddb4

View File

@@ -305,6 +305,13 @@ def get_records(item: str = "default", offset: int = Query(0, ge=0), limit: int
ORDER BY viewed ASC, article_date DESC
OFFSET %s LIMIT %s
""", (item, offset, limit))
elif item == "Китай":
cur.execute("""
SELECT * FROM url
WHERE other IN (%s, %s, %s)
ORDER BY viewed ASC, article_date DESC
OFFSET %s LIMIT %s
""", ("source1", "source2", "Китай", offset, limit))
else:
cur.execute("""
SELECT * FROM url