From 8a7886604042d86d3af879e2b81e2f2c4bfe011b Mon Sep 17 00:00:00 2001 From: Cameron Dale Date: Sun, 2 Mar 2008 12:26:16 -0800 Subject: [PATCH 1/1] Fix a minor error in the DB's storeFile function. --- apt_dht/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apt_dht/db.py b/apt_dht/db.py index e1d6d7b..cdd86c5 100644 --- a/apt_dht/db.py +++ b/apt_dht/db.py @@ -88,7 +88,7 @@ class DB: hashID = row['hashID'] else: c = self.conn.cursor() - c.execute("INSERT OR REPLACE INTO hashes (hash, pieces, piecehash, refreshed) VALUES (?, ?, ?)", + c.execute("INSERT OR REPLACE INTO hashes (hash, pieces, piecehash, refreshed) VALUES (?, ?, ?, ?)", (khash(hash), khash(pieces), khash(piecehash), datetime.now())) self.conn.commit() new_hash = True -- 2.30.2