From 31c8d1f2d07af97d2a88aa0e33afd9b30875cbb2 Mon Sep 17 00:00:00 2001 From: Nargis Sultani Date: Sat, 25 Nov 2023 19:12:00 -0500 Subject: [PATCH] fixed linting issues --- .../versions/5ff583272481_test_revision.py | 26 ------------------- src/config.py | 4 ++- 2 files changed, 3 insertions(+), 27 deletions(-) delete mode 100644 db_revisions/versions/5ff583272481_test_revision.py diff --git a/db_revisions/versions/5ff583272481_test_revision.py b/db_revisions/versions/5ff583272481_test_revision.py deleted file mode 100644 index 0a6fa22..0000000 --- a/db_revisions/versions/5ff583272481_test_revision.py +++ /dev/null @@ -1,26 +0,0 @@ -"""test revision - -Revision ID: 5ff583272481 -Revises: 20e0d51d8be9 -Create Date: 2023-11-25 17:03:56.769592 - -""" -from typing import Sequence, Union - -from alembic import op -import sqlalchemy as sa - - -# revision identifiers, used by Alembic. -revision: str = '5ff583272481' -down_revision: Union[str, None] = '20e0d51d8be9' -branch_labels: Union[str, Sequence[str], None] = None -depends_on: Union[str, Sequence[str], None] = None - - -def upgrade() -> None: - pass - - -def downgrade() -> None: - pass \ No newline at end of file diff --git a/src/config.py b/src/config.py index 6407eaf..cd6195b 100644 --- a/src/config.py +++ b/src/config.py @@ -41,6 +41,7 @@ INST_DB_URL = f"postgresql://{INST_DB_USER}:{INST_DB_PWD}@{INST_DB_HOST}/{INST_DB_NAME}" # end specific SBL configuration + def get_alembic_config(db_url: str = INST_DB_URL) -> Config: alembic_cfg = Config() alembic_cfg.set_main_option("script_location", alembic_dir) @@ -52,7 +53,8 @@ def upgrade_database(revision: str = "head", db_url: str = INST_DB_URL) -> None: alembic_cfg = get_alembic_config(db_url) alembic.upgrade(alembic_cfg, revision) -#End Alembic + +# End Alembic JWT_OPTS_PREFIX = "jwt_opts_"