Skip to content
Snippets Groups Projects
Commit 0a675430 authored by Lars Kruse's avatar Lars Kruse
Browse files

Revert "refactor: use short-lived sessions when accessing the database"

The introduction of short-lived sessions caused issues with functions,
which return database objects.  Such objects are not accessible (due to
lazy loading), after the session is closed.

Instead we should either move the session scope the respective callers
or use a request-based session handling (e.g. the one provided by
flask-sqlalchemy).

This reverts commit 0b594e50 and 70ffd1a0.

See: #93
parent cfad2cf1
No related branches found
No related tags found
1 merge request!11Rework database session handling
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment