From: Cameron Dale Date: Sun, 2 Mar 2008 20:26:16 +0000 (-0800) Subject: Fix a minor error in the DB's storeFile function. X-Git-Url: https://git.mxchange.org/?p=quix0rs-apt-p2p.git;a=commitdiff_plain;h=8a7886604042d86d3af879e2b81e2f2c4bfe011b;hp=53e3701b94b11cedbd57b5a6fc9c9f58e0a10932 Fix a minor error in the DB's storeFile function. --- 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