From 11eda6d03ec6e389bb6536707b6476ef0286afc7 Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Thu, 2 Feb 2023 11:26:00 +0000 Subject: [PATCH] staticmethod fix --- src/auto_archiver/formatters/html_formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auto_archiver/formatters/html_formatter.py b/src/auto_archiver/formatters/html_formatter.py index 317a5d0..aa56e72 100644 --- a/src/auto_archiver/formatters/html_formatter.py +++ b/src/auto_archiver/formatters/html_formatter.py @@ -18,7 +18,7 @@ class HtmlFormatter(Formatter): self.environment = Environment(loader=FileSystemLoader(os.path.join(pathlib.Path(__file__).parent.resolve(), "templates/"))) # JinjaHelper class static methods are added as filters self.environment.filters.update({ - k: v for k, v in JinjaHelpers.__dict__.items() if isinstance(v, staticmethod) + k: v.__func__ for k, v in JinjaHelpers.__dict__.items() if isinstance(v, staticmethod) }) self.template = self.environment.get_template("html_template.html")