From 26c23643c87639d774754021c1c166c43aa77dbf Mon Sep 17 00:00:00 2001 From: hkc Date: Tue, 30 Aug 2022 16:34:48 +0300 Subject: [PATCH] Fixed filter type guessing --- mastoposter/filters/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastoposter/filters/base.py b/mastoposter/filters/base.py index d4d8d99..9513790 100644 --- a/mastoposter/filters/base.py +++ b/mastoposter/filters/base.py @@ -57,5 +57,5 @@ class BaseFilter(ABC): def new_instance(cls, name: str, section: SectionProxy) -> FilterInstance: return FilterInstance( inverse=name[:1] in "~!", - filter=cls.load_filter(name.lstrip("~!"), section), + filter=cls.load_filter(section["type"], section), )