Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
gridtk
Commits
07be4bab
Commit
07be4bab
authored
Sep 12, 2013
by
Manuel Günther
Browse files
Added fix for python 3 that cannot compare tuples with lists.
parent
22796859
Changes
1
Hide whitespace changes
Inline
Side-by-side
gridtk/manager.py
View file @
07be4bab
...
...
@@ -41,7 +41,7 @@ class JobManager:
if
hasattr
(
self
,
'session'
):
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
self
.
_engine
=
sqlalchemy
.
create_engine
(
"sqlite:///"
+
self
.
_database
)
self
.
_session_maker
=
sqlalchemy
.
orm
.
sessionmaker
(
bind
=
self
.
_engine
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment