[stickynotes-antispam] Commit transaction before closing connection



commit b940ae64593a839f59a824330bd50246a3b43457
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Tue Oct 1 13:53:22 2019 +0200

    Commit transaction before closing connection

 stickynotes-antispam.py | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/stickynotes-antispam.py b/stickynotes-antispam.py
index 3f8de64..be390b6 100755
--- a/stickynotes-antispam.py
+++ b/stickynotes-antispam.py
@@ -57,6 +57,7 @@ def main():
                 print("deleting {}".format(urlkey))
                 c.execute("""DELETE from main WHERE urlkey = %s""", (urlkey,))
 
+    db.commit()
     db.close()
 
 if __name__ == "__main__":


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]