X-Git-Url: https://git.mxchange.org/?p=quix0rs-apt-p2p.git;a=blobdiff_plain;f=apt_dht%2Fdb.py;h=cdd86c5e2fa89b033c2a3ededa45d02e71a1dfc2;hp=e1d6d7b474f7f69bce218b85af50235e5d6f1dcb;hb=8a7886604042d86d3af879e2b81e2f2c4bfe011b;hpb=53e3701b94b11cedbd57b5a6fc9c9f58e0a10932 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