From 5d846ef5ca7f28931ebe2ca8e8e9ab848ed352cf Mon Sep 17 00:00:00 2001 From: yaso-meth Date: Wed, 14 Aug 2024 10:24:32 +0200 Subject: [PATCH] Fix medicine search --- backend/routers/medicine.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/routers/medicine.py b/backend/routers/medicine.py index bb30ad6e..554e47e5 100644 --- a/backend/routers/medicine.py +++ b/backend/routers/medicine.py @@ -25,8 +25,9 @@ async def read_medicineby_search(medSearch: str, session: SessionContainer = Dep def getMedicineData(medsearch: str): path = os.getcwd() + print(path) parentDir = os.path.abspath(os.path.join(path, os.pardir)) - filePath = os.path.join(path, "backend/medicines", "Database-Of-Medicine-Prices-31-May-2024.xls") + filePath = os.path.join(path, "medicines", "Database-Of-Medicine-Prices-31-May-2024.xls") book = xlrd.open_workbook_xls(filePath) sh = book.sheet_by_index(0) medlist = []