Skip to content

Commit

Permalink
4.11.1 bugfix release
Browse files Browse the repository at this point in the history
* Enable autocommit for model.__future__ connections
* Only open a single database connection for model.__future__ calls
* Drops support for ```ispyb.legacy``` code
  • Loading branch information
Anthchirp committed Sep 21, 2018
2 parents 9a53e75 + b88aec0 commit 09dd224
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ispyb/__init__.py
Expand Up @@ -6,7 +6,7 @@
import ConfigParser as configparser
import logging

__version__ = '4.11.0'
__version__ = '4.11.1'

_log = logging.getLogger('ispyb')

Expand Down
1 change: 1 addition & 0 deletions ispyb/model/__future__.py
Expand Up @@ -46,6 +46,7 @@ def enable(configuration_file):

# Open a direct MySQL connection
_db = mysql.connector.connect(host=host, port=port, user=username, password=password, database=database)
_db.autocommit = True
_db_cc = DictionaryContextcursorFactory(_db.cursor)
_db_config = configuration_file

Expand Down

0 comments on commit 09dd224

Please sign in to comment.