remove useless code
This commit is contained in:
@@ -9,10 +9,6 @@ from fastapi import Depends
|
|||||||
|
|
||||||
router = APIRouter()
|
router = APIRouter()
|
||||||
|
|
||||||
class medicine(BaseModel):
|
|
||||||
name: str
|
|
||||||
unit: str
|
|
||||||
|
|
||||||
#get all medicines
|
#get all medicines
|
||||||
@router.get("/users/medicine/all", tags=["Medicine"])
|
@router.get("/users/medicine/all", tags=["Medicine"])
|
||||||
async def read_all_medicine(session: SessionContainer = Depends(verify_session())):
|
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):
|
def getMedicineData(medsearch: str):
|
||||||
path = os.getcwd()
|
path = os.getcwd()
|
||||||
print(path)
|
#print(path)
|
||||||
parentDir = os.path.abspath(os.path.join(path, os.pardir))
|
#parentDir = os.path.abspath(os.path.join(path, os.pardir))
|
||||||
filePath = os.path.join(path, "medicines", "Database-Of-Medicine-Prices-31-May-2024.xls")
|
filePath = os.path.join(path, "medicines", "Database-Of-Medicine-Prices-9-July-2024.xls")
|
||||||
book = xlrd.open_workbook_xls(filePath)
|
book = xlrd.open_workbook_xls(filePath)
|
||||||
sh = book.sheet_by_index(0)
|
sh = book.sheet_by_index(0)
|
||||||
medlist = []
|
medlist = []
|
||||||
|
|||||||
Reference in New Issue
Block a user