diff --git a/CHANGES.md b/CHANGES.md index e9bf3ea..64830a9 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,7 @@ +### 1.0.7 + +* SQLALCHEMY_COMMIT_ON_TEARDOWN = True (in config) + ### 1.0.6 * commit after database queries diff --git a/service/config.py b/service/config.py index 79fcca5..4894191 100644 --- a/service/config.py +++ b/service/config.py @@ -1,6 +1,8 @@ GRAPHICS_SECRET_KEY = 'this should be changed' GRAPHICS_INCLUDE_ARXIV = False SQLALCHEMY_BINDS = {} +# Proper handling of database connections +SQLALCHEMY_COMMIT_ON_TEARDOWN = True GRAPHICS_ENABLE_UPDATES = False # Define sets for which to obtain graphics data for graphics database # The key defines the set and the values are journals (or categories, in the