db: don't build an intermediate list

This commit is contained in:
wisp3rwind 2023-06-25 11:09:37 +02:00
parent 69ce0c7c0a
commit 8d9f62cdb5

View file

@ -204,7 +204,7 @@ class LazyConvertDict:
def __contains__(self, key) -> bool:
"""Determine whether `key` is an attribute on this object.
"""
return key in self.keys()
return key in self._converted.keys() or key in self.data.keys()
def __iter__(self) -> Iterable[str]:
"""Iterate over the available field names (excluding computed