Commit 3a694a1d by mohammed.shibili

corrections done

parent a0eedd26
...@@ -7,4 +7,4 @@ app = FastAPI() ...@@ -7,4 +7,4 @@ app = FastAPI()
app.include_router(files) app.include_router(files)
app.include_router(extract) app.include_router(extract)
if __name__ == "__main__": if __name__ == "__main__":
uvicorn.run(app, port=api_port) uvicorn.run(app, port=api_port)
\ No newline at end of file
class Endpoints: class Endpoints:
post_insert = "/insert_data" post_insert = "/insert_data"
get_violation = "/get_violation" get_violation = "/get_violation"
get_noViolation = "/no_violation" get_no_violation = "/no_violation"
get_to_exel = "/to_exel" get_to_exel = "/to_exel"
exel_file = "/data.xlsx" exel_file = "/data.xlsx"
folder = "temp" folder = "temp"
......
...@@ -21,7 +21,7 @@ async def get_violation(): ...@@ -21,7 +21,7 @@ async def get_violation():
# to get business names with no violations # to get business names with no violations
@extract.get(Endpoints().get_noViolation, tags=['Aggregation']) @extract.get(Endpoints().get_no_violation, tags=['Aggregation'])
async def get_no_violation(): async def get_no_violation():
print(OperationsOnApi().no_violation()) print(OperationsOnApi().no_violation())
return "values extracted" return "values extracted"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment