diff --git a/db_logic/medicament_template.py b/db_logic/medicament_template.py index 9447200..36431e3 100644 --- a/db_logic/medicament_template.py +++ b/db_logic/medicament_template.py @@ -27,7 +27,7 @@ class BllMedicamentTemplate(Repository): filter_base += f" client_id='{client_id}' " if filter_base: filter_base = f" where {filter_base} " - sql_all = f"select * from rms_medicament_template {client_id} order by create_date desc" + sql_all = f"select * from rms_medicament_template {filter_base} order by create_date desc" try: count_number = len(self.execute(sql_all).fetchall()) except Exception: