From 25feb2724cac83d65ff7507ac574c6260021e9d9 Mon Sep 17 00:00:00 2001 From: yaso-meth Date: Thu, 22 Aug 2024 16:10:36 +0200 Subject: [PATCH] remove useless code --- backend/routers/medicine.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/backend/routers/medicine.py b/backend/routers/medicine.py index 554e47e5..1b1b9f6d 100644 --- a/backend/routers/medicine.py +++ b/backend/routers/medicine.py @@ -9,10 +9,6 @@ from fastapi import Depends router = APIRouter() -class medicine(BaseModel): - name: str - unit: str - #get all medicines @router.get("/users/medicine/all", tags=["Medicine"]) async def read_all_medicine(session: SessionContainer = Depends(verify_session())): @@ -25,9 +21,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, "medicines", "Database-Of-Medicine-Prices-31-May-2024.xls") + #print(path) + #parentDir = os.path.abspath(os.path.join(path, os.pardir)) + filePath = os.path.join(path, "medicines", "Database-Of-Medicine-Prices-9-July-2024.xls") book = xlrd.open_workbook_xls(filePath) sh = book.sheet_by_index(0) medlist = []