Skip to content

Commit

Permalink
Move import to the top in env.py file to avoid linter warnings (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison authored Jun 16, 2020
1 parent f969b5e commit b34d9e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_migrate/templates/flask/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from sqlalchemy import engine_from_config
from sqlalchemy import pool
from flask import current_app

from alembic import context

Expand All @@ -21,7 +22,6 @@
# for 'autogenerate' support
# from myapp import mymodel
# target_metadata = mymodel.Base.metadata
from flask import current_app
config.set_main_option(
'sqlalchemy.url',
str(current_app.extensions['migrate'].db.engine.url).replace('%', '%%'))
Expand Down

0 comments on commit b34d9e3

Please sign in to comment.