Skip to content

Commit

Permalink
relWorksCache: fix another length -> len
Browse files Browse the repository at this point in the history
  • Loading branch information
mokko committed Jul 27, 2024
1 parent 404b513 commit 5f931d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zml2lido/relWorksCache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 5f931d4

Please sign in to comment.