From 0e24745649c49a491f7d0494cb50f7089e79ab12 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Wed, 28 Sep 2011 10:15:38 +0100 Subject: [PATCH] call commit() on the right object --- client/djrandom_client/upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/djrandom_client/upload.py b/client/djrandom_client/upload.py index f4f2197..3244797 100644 --- a/client/djrandom_client/upload.py +++ b/client/djrandom_client/upload.py @@ -55,7 +55,7 @@ class FileDatabase(object): c = self.conn.cursor() c.execute('insert or replace into seen (sha1, stamp) values (?, ?)', (key, int(time.time()))) - c.commit() + self.conn.commit() class Uploader(object): -- GitLab