]> git.mxchange.org Git - quix0rs-apt-p2p.git/commitdiff
Fix a minor error in the DB's storeFile function.
authorCameron Dale <camrdale@gmail.com>
Sun, 2 Mar 2008 20:26:16 +0000 (12:26 -0800)
committerCameron Dale <camrdale@gmail.com>
Sun, 2 Mar 2008 20:26:16 +0000 (12:26 -0800)
apt_dht/db.py

index e1d6d7b474f7f69bce218b85af50235e5d6f1dcb..cdd86c5e2fa89b033c2a3ededa45d02e71a1dfc2 100644 (file)
@@ -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