psu: commit transaction when closing connection
This commit is contained in:
parent
0de7ef2550
commit
aa0443d0b5
1 changed files with 1 additions and 0 deletions
|
@ -51,6 +51,7 @@ def closeConnection():
|
||||||
global conn
|
global conn
|
||||||
if conn is not None:
|
if conn is not None:
|
||||||
print('closing ZODB connection...')
|
print('closing ZODB connection...')
|
||||||
|
commit()
|
||||||
conn.close()
|
conn.close()
|
||||||
conn = None
|
conn = None
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue