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())