From 5f931d4845adcfd5280c1c93a24a7d1ad4380649 Mon Sep 17 00:00:00 2001 From: Maurice Mengel Date: Sat, 27 Jul 2024 12:06:00 +0200 Subject: [PATCH] relWorksCache: fix another length -> len --- zml2lido/relWorksCache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zml2lido/relWorksCache.py b/zml2lido/relWorksCache.py index e8a0ca0..ffdc195 100644 --- a/zml2lido/relWorksCache.py +++ b/zml2lido/relWorksCache.py @@ -91,7 +91,7 @@ def lookup_relWork(self, *, mtype: str, ID: int) -> None: print(f"{self.length()} looking up relWork {mtype} {ID}") relWorkM = self.client.search2(query=q) # realistic that query results are empty? - if relWorkM and self.cache.length() < self.maxSize: + if relWorkM and len(self.cache) < self.maxSize: self.changed = True self.cache += relWorkM # appending them to relWork cache # what to do if nothing is found?