chore: isolate examples database by default (#25003)

(cherry picked from commit 269c99293f)
This commit is contained in:
Daniel Vaz Gaspar
2023-08-17 11:50:24 +01:00
committed by Michael S. Molina
parent ea27cf13d3
commit c2c5f232c8
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: