diff --git a/ark_nova_stats/api/app.py b/ark_nova_stats/api/app.py index c753cc1b..ab859f38 100644 --- a/ark_nova_stats/api/app.py +++ b/ark_nova_stats/api/app.py @@ -1,13 +1,7 @@ -import datetime -from datetime import timezone -from typing import Optional - -from flask import abort, redirect, request, session from graphql_server.flask import GraphQLView # type: ignore -from ark_nova_stats import models from ark_nova_stats.api.gql import schema -from ark_nova_stats.config import app, db +from ark_nova_stats.config import app app.add_url_rule( "/graphql", diff --git a/ark_nova_stats/api/migrations/BUILD.bazel b/ark_nova_stats/api/migrations/BUILD.bazel index b9d788c6..36a32665 100644 --- a/ark_nova_stats/api/migrations/BUILD.bazel +++ b/ark_nova_stats/api/migrations/BUILD.bazel @@ -22,10 +22,8 @@ py_binary( visibility = ["//ark_nova_stats/api:__subpackages__"], deps = [ "//ark_nova_stats:config_py", - "//base:flask_app_py", "//scripts:wait_for_postgres", # keep "@py_deps//flask_migrate", - "@rules_python//python/runfiles", ], ) @@ -34,6 +32,7 @@ py_library( srcs = ["env.py"], visibility = ["//:__subpackages__"], deps = [ + "//base:flask_app_py", "@py_deps//alembic", "@py_deps//flask", ], diff --git a/ark_nova_stats/config.py b/ark_nova_stats/config.py index 542929fe..9793b98c 100644 --- a/ark_nova_stats/config.py +++ b/ark_nova_stats/config.py @@ -1,5 +1,3 @@ -import os - from base.flask_app import FlaskApp app, cors, db, migrate = FlaskApp(__name__) diff --git a/skeleton/api/app.py b/skeleton/api/app.py index e86af904..0005be18 100644 --- a/skeleton/api/app.py +++ b/skeleton/api/app.py @@ -1,13 +1,7 @@ -import datetime -from datetime import timezone -from typing import Optional - -from flask import abort, redirect, request, session from graphql_server.flask import GraphQLView # type: ignore -from skeleton import models from skeleton.api.gql import schema -from skeleton.config import app, db +from skeleton.config import app app.add_url_rule( "/graphql", diff --git a/skeleton/config.py b/skeleton/config.py index 542929fe..9793b98c 100644 --- a/skeleton/config.py +++ b/skeleton/config.py @@ -1,5 +1,3 @@ -import os - from base.flask_app import FlaskApp app, cors, db, migrate = FlaskApp(__name__)