From ca9df3ddb48e36d7691e611ee81869e99454728c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B3=D0=BE=D1=80=D1=8C=20=D0=91=D0=B0=D0=BD=D0=B4?= =?UTF-8?q?=D1=83=D1=80=D0=B8=D1=81=D1=82?= Date: Sat, 25 Apr 2026 15:45:35 +1000 Subject: [PATCH] =?UTF-8?q?+=20=D0=9A=D0=B8=D1=82=D0=B0=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot --- main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.py b/main.py index 007a628..a2b7190 100644 --- a/main.py +++ b/main.py @@ -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