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 e1d6d7b..cdd86c5 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