From 9eb6f91b3b8c15e88e020619c70e95f8c8a4bf99 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:21:19 +1000 Subject: [PATCH] =?UTF-8?q?+=20=D1=84=D0=B8=D0=BB=D1=8C=D1=82=D1=80=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=AF=D0=BF=D0=BE=D0=BD=D0=B8=D1=8E=20=D0=B8=20?= =?UTF-8?q?=D0=9A=D0=BE=D1=80=D0=B5=D1=8E?= 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 c602d96..007a628 100644 --- a/main.py +++ b/main.py @@ -298,6 +298,13 @@ def get_records(item: str = "default", offset: int = Query(0, ge=0), limit: int ORDER BY parsed_at DESC OFFSET %s LIMIT %s """, (offset, limit)) + elif item == "Япония" or item == "Корея": + cur.execute(""" + SELECT * FROM url + WHERE other = %s + ORDER BY viewed ASC, article_date DESC + OFFSET %s LIMIT %s + """, (item, offset, limit)) else: cur.execute(""" SELECT * FROM url