From 635e80671e91a6c106f42cb34f383b0c8e3bc5d8 Mon Sep 17 00:00:00 2001 From: "apan_youxiang@163.com" Date: Thu, 11 Aug 2022 09:35:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=95=E5=89=82=E7=AE=A1=E7=90=86=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=E8=A7=84=E5=88=99=E6=94=B9=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db_logic/medicament.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db_logic/medicament.py b/db_logic/medicament.py index f65bcfa..4aa1853 100644 --- a/db_logic/medicament.py +++ b/db_logic/medicament.py @@ -113,7 +113,7 @@ class BllMedicament(Repository): filter_base += " and " filter_base += f" `name` like '{seach_word}' or english_name like '{seach_word}' " sql_all = f""" - select * from rms_medicament {filter_base} + select * from rms_medicament {filter_base} order by put_in_date desc """ try: count_number = len(self.execute(sql_all).fetchall())