chore: isolate examples database by default (#25003)

This commit is contained in:
Daniel Vaz Gaspar
2023-08-17 11:50:24 +01:00
committed by GitHub
parent 10abb68288
commit 269c99293f
6 changed files with 41 additions and 13 deletions

View File

@@ -65,11 +65,7 @@ def get_or_create_db(
def get_example_database() -> Database:
db_uri = (
current_app.config.get("SQLALCHEMY_EXAMPLES_URI")
or current_app.config["SQLALCHEMY_DATABASE_URI"]
)
return get_or_create_db("examples", db_uri)
return get_or_create_db("examples", current_app.config["SQLALCHEMY_EXAMPLES_URI"])
def get_main_database() -> Database: