X-Git-Url: https://git.mxchange.org/?p=quix0rs-apt-p2p.git;a=blobdiff_plain;f=apt_dht%2Fdb.py;fp=apt_dht%2Fdb.py;h=fd265f6f36503ca31cf9d8a0dda11b8c78bc9f89;hp=f72b104d8c5965950ad744a432af86d3431e103d;hb=b36fa9c7f5ad4827c8de990fbfca1a379bb60e39;hpb=5ae15cb5cc24c1fd9a75ea7a8b416f733d1c79be diff --git a/apt_dht/db.py b/apt_dht/db.py index f72b104..fd265f6 100644 --- a/apt_dht/db.py +++ b/apt_dht/db.py @@ -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