mirror of
https://github.com/beetbox/beets.git
synced 2026-01-05 07:23:33 +01:00
match method converted to instance method
This commit is contained in:
parent
99a3343c0c
commit
8988d908c5
1 changed files with 2 additions and 3 deletions
|
|
@ -156,10 +156,9 @@ class NoneQuery(FieldQuery):
|
|||
def col_clause(self):
|
||||
return self.field + " IS NULL", ()
|
||||
|
||||
@classmethod
|
||||
def match(cls, item):
|
||||
def match(self, item):
|
||||
try:
|
||||
return item[cls.field] is None
|
||||
return item.get(self.field) is None
|
||||
except KeyError:
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue