From 063d204945e70258a90cfdb12a20ee9cb1515ed3 Mon Sep 17 00:00:00 2001 From: nomike Date: Wed, 18 Sep 2024 03:08:02 +0200 Subject: [PATCH 1/2] Add markdown to requirements.txt. --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index a73b78c..7d10615 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ flask +markdown pyyaml regex From e10f29e2a0ade9e6c0c727d4e1e77c90005a9947 Mon Sep 17 00:00:00 2001 From: nomike Date: Wed, 18 Sep 2024 03:08:52 +0200 Subject: [PATCH 2/2] Re-add removed imports as they are used inside the templates. Suppress pylint warnings on them. --- templatehelper.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/templatehelper.py b/templatehelper.py index 0c7dbf1..70ba9bc 100644 --- a/templatehelper.py +++ b/templatehelper.py @@ -15,7 +15,14 @@ import json import mimetypes import os - +# pylint: disable=unused-import +import re +# pylint: disable=unused-import +import urllib +from datetime import datetime, timezone, tzinfo + +# pylint: disable=unused-import +import markdown import regex import yaml