From 8d9f62cdb51c85bc5caecf0cc96a2b039c38c107 Mon Sep 17 00:00:00 2001 From: wisp3rwind <17089248+wisp3rwind@users.noreply.github.com> Date: Sun, 25 Jun 2023 11:09:37 +0200 Subject: [PATCH] db: don't build an intermediate list --- beets/dbcore/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/dbcore/db.py b/beets/dbcore/db.py index accb62327..81c0a6cd3 100755 --- a/beets/dbcore/db.py +++ b/beets/dbcore/db.py @@ -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