chore: Bump flask libs (#22355)

This commit is contained in:
EugeneTorap
2023-01-09 13:10:31 +03:00
committed by GitHub
parent 001100ddf0
commit 30dab3a00a
10 changed files with 49 additions and 37 deletions

View File

@@ -188,7 +188,11 @@ def example_db_provider() -> Callable[[], Database]: # type: ignore
def setup_presto_if_needed():
backend = app.config["SQLALCHEMY_EXAMPLES_URI"].split("://")[0]
db_uri = (
app.config.get("SQLALCHEMY_EXAMPLES_URI")
or app.config["SQLALCHEMY_DATABASE_URI"]
)
backend = db_uri.split("://")[0]
database = get_example_database()
extra = database.get_extra()