Skip to content

Commit 76e4527

Browse files
committed
moved get_database_connection after definition of get_database
1 parent 3e46a2e commit 76e4527

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/opengeodeweb_microservice/database/connection.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ 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-
2523

2624
def get_database() -> Optional[SQLAlchemy]:
2725
return db
2826

27+
get_database_connection = get_database
2928

3029
def get_session() -> Optional[scoped_session[Session]]:
3130
return db.session if db else None

0 commit comments

Comments
 (0)