Fix a minor error in the DB's storeFile function.
[quix0rs-apt-p2p.git] / 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