Fix and test bootstrapper hash cache reload from db
This commit is contained in:
parent
de8286829a
commit
866346b059
2 changed files with 23 additions and 1 deletions
|
@ -26,7 +26,7 @@ class BootstrapperDb(Db.Db):
|
|||
|
||||
def updateHashCache(self):
|
||||
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))
|
||||
|
||||
def checkTables(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue