From 6595d53212eaa4b9319da7196f5e2286d30eb462 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 6 Jun 2021 10:11:00 +0000 Subject: Format code with black This commit fixes the style issues introduced in 57207ef according to the output from black. Details: https://deepsource.io/gh/navanchauhan/SaaS-in-a-Flask/transform/fb582430-1f1f-45bb-8c05-5f5bec16f981/ --- app/apis.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'app/apis.py') diff --git a/app/apis.py b/app/apis.py index 51e8987..b81882e 100644 --- a/app/apis.py +++ b/app/apis.py @@ -4,17 +4,17 @@ from fastapi import Body, FastAPI, HTTPException from fastapi.middleware.wsgi import WSGIMiddleware from pydantic import BaseModel + @app.get("/version") async def API_Version(): - return {"message":app.version} + return {"message": app.version} + @app.get("/v1/user-details") async def API_User_Details(email: str): - user = models.User.query.filter_by(email=email).first() - try: - assert user != None - except AssertionError: - raise HTTPException(status_code=404, detail="User Not Found") - return { - "first_name":user.first_name, - "last_name":user.last_name} \ No newline at end of file + user = models.User.query.filter_by(email=email).first() + try: + assert user != None + except AssertionError: + raise HTTPException(status_code=404, detail="User Not Found") + return {"first_name": user.first_name, "last_name": user.last_name} -- cgit v1.2.3