[stickynotes-antispam] Commit transaction before closing connection
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [stickynotes-antispam] Commit transaction before closing connection
- Date: Tue, 1 Oct 2019 11:53:31 +0000 (UTC)
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]