projects
/
quix0rs-apt-p2p.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53e3701
)
Fix a minor error in the DB's storeFile function.
author
Cameron Dale
<camrdale@gmail.com>
Sun, 2 Mar 2008 20:26:16 +0000
(12:26 -0800)
committer
Cameron Dale
<camrdale@gmail.com>
Sun, 2 Mar 2008 20:26:16 +0000
(12:26 -0800)
apt_dht/db.py
patch
|
blob
|
history
diff --git
a/apt_dht/db.py
b/apt_dht/db.py
index e1d6d7b474f7f69bce218b85af50235e5d6f1dcb..cdd86c5e2fa89b033c2a3ededa45d02e71a1dfc2 100644
(file)
--- 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