Fix medicine search
This commit is contained in:
parent
8a2aba667f
commit
5d846ef5ca
1 changed files with 2 additions and 1 deletions
|
|
@ -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 = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue