Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
rylew1 committed Apr 4, 2024
1 parent 381f704 commit a381b91
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,27 @@
import os
from typing import Optional

from apiflask import APIFlask
from flask import g
from werkzeug.exceptions import Unauthorized

import src.adapters.db as db
import src.adapters.db.flask_db as flask_db
import src.logging
import src.logging.flask_logger as flask_logger
from apiflask import APIFlask
from flask import g
from src.api.debug import DebugAdapterProtocolConfig
from src.api.healthcheck import healthcheck_blueprint
from src.api.schemas import response_schema
from src.api.users import user_blueprint
from src.auth.api_key_auth import User, get_app_security_scheme
from werkzeug.exceptions import Unauthorized

logger = logging.getLogger(__name__)


def create_app() -> APIFlask:
app = APIFlask(__name__)

print('app => ', app)
print("app => ", app)

if is_running_in_local():
setup_debug_adapter()
Expand All @@ -40,7 +41,7 @@ def create_app() -> APIFlask:


def is_running_in_local() -> bool:
print( 's.getenv("FLASK_ENV") => ', os.getenv("FLASK_ENV"))
print('s.getenv("FLASK_ENV") => ', os.getenv("FLASK_ENV"))
return os.getenv("FLASK_ENV") in ("local", "dev")


Expand Down

0 comments on commit a381b91

Please sign in to comment.