Fix and test bootstrapper hash cache reload from db

This commit is contained in:
shortcutme 2019-07-17 16:29:54 +02:00
parent de8286829a
commit 866346b059
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 23 additions and 1 deletions

View file

@ -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):