From af5070ad51f3a077edfef56ffecca9a245a586eb Mon Sep 17 00:00:00 2001 From: Marc Calvo Date: Wed, 31 Jul 2024 09:06:12 +0200 Subject: [PATCH] commit cursor before closing --- poweremail_signaturit/poweremail_mailbox.py | 1 + 1 file changed, 1 insertion(+) diff --git a/poweremail_signaturit/poweremail_mailbox.py b/poweremail_signaturit/poweremail_mailbox.py index 2560d04..3df0d9d 100644 --- a/poweremail_signaturit/poweremail_mailbox.py +++ b/poweremail_signaturit/poweremail_mailbox.py @@ -66,6 +66,7 @@ def update_poweremail_certificat_state(self, cursor, uid, ids, context=None): all_data = tmp_cursor.fetchall() pwids = [x[0] for x in all_data] self.write(tmp_cursor, uid, pwids, {'certificat_update_datetime': datetime.now().strftime("%Y-%m-%d %H:%M:%S")}) + tmp_cursor.commit() except LockNotAvailable: return False finally: