Merge branch 'documentation' into apt-dht
[quix0rs-apt-p2p.git] / apt_dht / db.py
index f72b104d8c5965950ad744a432af86d3431e103d..fd265f6f36503ca31cf9d8a0dda11b8c78bc9f89 100644 (file)
@@ -128,7 +128,7 @@ class DB:
         else:
             # Add the new hash to the database
             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