79073940

Date: 2024-10-10 10:29:04
Score: 0.5
Natty:
Report link

I had same problem, it was solved by adding async to endpoint function.

@app.get("/bad_profile")
def endpoint_bad_profiler():
    # some code
    return {"key":"val"}

@app.get("/good_profile")
async def endpoint_good_profiler():
    # some code
    return {"key":"val"}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Motixa