From a434d6f82528dba31b023b0834f798b63eb1cd22 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:26:18 +0000 Subject: Format code with black This commit fixes the style issues introduced in 2d5ab7b according to the output from black. Details: https://deepsource.io/gh/navanchauhan/SaaS-in-a-Flask/transform/a86da106-1f68-4a11-84a6-76647546672c/ --- app/apis.py | 2 +- app/misc_func.py | 2 +- app/views/admin.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/apis.py b/app/apis.py index 4cd0c7c..cf7fb9f 100644 --- a/app/apis.py +++ b/app/apis.py @@ -14,5 +14,5 @@ async def API_Version(): async def API_User_Details(email: str): user = models.User.query.filter_by(email=email).first() if user is None: - raise HTTPException(status_code=404,detail="User Not Found") + raise HTTPException(status_code=404, detail="User Not Found") return {"first_name": user.first_name, "last_name": user.last_name} diff --git a/app/misc_func.py b/app/misc_func.py index 518b6a3..874d365 100644 --- a/app/misc_func.py +++ b/app/misc_func.py @@ -27,4 +27,4 @@ def send(to, subject, body, body_html): def send_async(app, message): with app.app_context(): - message.send() \ No newline at end of file + message.send() diff --git a/app/views/admin.py b/app/views/admin.py index 14b9c63..5215f02 100644 --- a/app/views/admin.py +++ b/app/views/admin.py @@ -9,7 +9,7 @@ from flask_admin.contrib.sqla import ModelView admin = Admin(app, name="Admin", template_mode="bootstrap4") -class ModelView(ModelView): # skipcq: PYL-E0102 +class ModelView(ModelView): # skipcq: PYL-E0102 def is_accessible(self): try: if flask_login.current_user.get_role() == "SUPERUSER": -- cgit v1.2.3