From 96e935300ce65c94c215deb89798d8f19ef38ef3 Mon Sep 17 00:00:00 2001 From: Vadim Ushakov Date: Mon, 15 Jul 2019 14:13:14 +0700 Subject: [PATCH] TrackerZero: fix error in updateHashCache() Reported to the upstream: https://github.com/HelloZeroNet/ZeroNet/issues/2095 --- plugins/TrackerZero/TrackerZeroDb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/TrackerZero/TrackerZeroDb.py b/plugins/TrackerZero/TrackerZeroDb.py index b5b57afa..e91cf9be 100644 --- a/plugins/TrackerZero/TrackerZeroDb.py +++ b/plugins/TrackerZero/TrackerZeroDb.py @@ -26,7 +26,7 @@ class TrackerZeroDb(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):