Skip to content

Commit 3e46a2e

Browse files
committed
changed position of get_dataabase_connection to fit OGW-Back initial position
1 parent 683fd6b commit 3e46a2e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/opengeodeweb_microservice/database/connection.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@ def init_database(app: Flask, db_filename: str = DATABASE_FILENAME) -> SQLAlchem
2020
db.create_all()
2121
return db
2222

23+
get_database_connection = get_database
24+
2325

2426
def get_database() -> Optional[SQLAlchemy]:
2527
return db
2628

2729

2830
def get_session() -> Optional[scoped_session[Session]]:
2931
return db.session if db else None
30-
31-
32-
get_database_connection = get_database

0 commit comments

Comments
 (0)