Show More
@@ -122,6 +122,7 def dbsession(func): | |||||
122 | ret = func(*fargs, **fkwargs) |
|
122 | ret = func(*fargs, **fkwargs) | |
123 | return ret |
|
123 | return ret | |
124 | finally: |
|
124 | finally: | |
125 | meta.Session.remove() |
|
125 | if CELERY_ON: | |
|
126 | meta.Session.remove() | |||
126 |
|
127 | |||
127 | return decorator(__wrapper, func) |
|
128 | return decorator(__wrapper, func) |
General Comments 0
You need to be logged in to leave comments.
Login now