1
0
Fork 0

Fixed filter type guessing

This commit is contained in:
Casey 2022-08-30 16:34:48 +03:00
parent 7c2760783b
commit 26c23643c8
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 1 additions and 1 deletions

View File

@ -57,5 +57,5 @@ class BaseFilter(ABC):
def new_instance(cls, name: str, section: SectionProxy) -> FilterInstance: def new_instance(cls, name: str, section: SectionProxy) -> FilterInstance:
return FilterInstance( return FilterInstance(
inverse=name[:1] in "~!", inverse=name[:1] in "~!",
filter=cls.load_filter(name.lstrip("~!"), section), filter=cls.load_filter(section["type"], section),
) )