From 9c5a2b72568bbd73a7431771fc866d2dc6d5f41b Mon Sep 17 00:00:00 2001 From: erjemin Date: Mon, 23 Aug 2021 21:27:35 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BE=D0=B3=D1=80=D0=B0=D0=BD=D0=B8=D1=87?= =?UTF-8?q?=D0=B8=D1=82=D1=8C=20=D1=87=D0=B8=D1=81=D0=BB=D0=BE=20=D1=82?= =?UTF-8?q?=D0=B5=D0=B3=D0=BE=D0=B2=20=D0=B2=20=D0=BD=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=B3=D0=B0=D1=86=D0=B8=D0=B8=20=D1=81=D0=BB=D0=B5=D0=B2=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cadpoint/web/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cadpoint/web/views.py b/cadpoint/web/views.py index da7f198..9c11859 100644 --- a/cadpoint/web/views.py +++ b/cadpoint/web/views.py @@ -75,8 +75,8 @@ def index(request, " GROUP BY tPageInfo.id, tPageInfo.NumInPage," " tTotalInfo.id, tTotalInfo.NumTotal," " tTotalInfo.name, tTotalInfo.slug " - "ORDER BY tPageInfo.NumInPage DESC, tTotalInfo.name," - " tTotalInfo.NumTotal DESC" % (query,)) + "ORDER BY tPageInfo.NumInPage DESC, tTotalInfo.NumTotal DESC, " + "tTotalInfo.name LIMIT 20" % (query,)) to_template.update({"LENTA": q_content, "TAGS_IN_PAGE": q_tags}) to_template.update({"PAGE_OF_LIST": int(ppage)}) query_count = "SELECT 1 AS id," \