TrackerZero: fix error in updateHashCache()

Reported to the upstream: https://github.com/HelloZeroNet/ZeroNet/issues/2095
This commit is contained in:
Vadim Ushakov 2019-07-15 14:13:14 +07:00
parent 2e1b0e093f
commit 96e935300c

View file

@ -26,7 +26,7 @@ class TrackerZeroDb(Db.Db):
def updateHashCache(self): def updateHashCache(self):
res = self.execute("SELECT * FROM hash") res = self.execute("SELECT * FROM hash")
self.hash_ids = {str(row["hash"]): row["hash_id"] for row in res} self.hash_ids = {row["hash"]: row["hash_id"] for row in res}
self.log.debug("Loaded %s hash_ids" % len(self.hash_ids)) self.log.debug("Loaded %s hash_ids" % len(self.hash_ids))
def checkTables(self): def checkTables(self):