• R/O
  • SSH
  • HTTPS

o2on: Commit


Commit MetaInfo

Revision181 (tree)
Zeit2010-02-20 21:44:39
Autornawota

Log Message

Hexlify key

Ändern Zusammenfassung

Diff

--- trunk/opy2on/lib/o2on_dat.py (revision 180)
+++ trunk/opy2on/lib/o2on_dat.py (revision 181)
@@ -204,7 +204,7 @@
204204 def has_keyhash(self,key):
205205 with self.lock:
206206 sqlite_conn = sqlite3.connect(DatDBFile)
207- c = sqlite_conn.execute('SELECT COUNT(*) FROM dattbl WHERE hash = ?', (key,))
207+ c = sqlite_conn.execute('SELECT COUNT(*) FROM dattbl WHERE hash = ?', (hexlify(key),))
208208 return c.fetchone()[0]==1
209209 def add_dat(self, dat):
210210 with self.lock:
Show on old repository browser