mirror of
https://github.com/beetbox/beets.git
synced 2025-12-25 01:53:31 +01:00
db: don't build an intermediate list
This commit is contained in:
parent
69ce0c7c0a
commit
8d9f62cdb5
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue