mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
server/middleware: fix session usage
This commit is contained in:
@ -8,5 +8,4 @@ class DbSession(object):
|
||||
request.context.session = self._session_factory()
|
||||
|
||||
def process_response(self, request, _response, _resource):
|
||||
# any commits need to happen explicitly in the API layer.
|
||||
request.context.session.close()
|
||||
self._session_factory.remove()
|
||||
|
Reference in New Issue
Block a user