Skip to content
Snippets Groups Projects
Commit 07be4bab authored by Manuel Günther's avatar Manuel Günther
Browse files

Added fix for python 3 that cannot compare tuples with lists.

parent 22796859
Branches
Tags
No related merge requests found
...@@ -41,7 +41,7 @@ class JobManager: ...@@ -41,7 +41,7 @@ class JobManager:
if hasattr(self, 'session'): if hasattr(self, 'session'):
raise RuntimeError('Dead lock detected. Please do not try to lock the session when it is already locked!') raise RuntimeError('Dead lock detected. Please do not try to lock the session when it is already locked!')
if sqlalchemy_version < (0,7,8): if sqlalchemy_version < [0,7,8]:
# for old sqlalchemy versions, in some cases it is required to re-generate the enging for each session # for old sqlalchemy versions, in some cases it is required to re-generate the enging for each session
self._engine = sqlalchemy.create_engine("sqlite:///"+self._database) self._engine = sqlalchemy.create_engine("sqlite:///"+self._database)
self._session_maker = sqlalchemy.orm.sessionmaker(bind=self._engine) self._session_maker = sqlalchemy.orm.sessionmaker(bind=self._engine)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment