diff --git a/discord_rss_bot/main.py b/discord_rss_bot/main.py index 8a92adf..0e884bf 100644 --- a/discord_rss_bot/main.py +++ b/discord_rss_bot/main.py @@ -131,6 +131,7 @@ templates.env.filters["encode_url"] = lambda url: urllib.parse.quote(url) if url templates.env.filters["entry_is_whitelisted"] = entry_is_whitelisted templates.env.filters["entry_is_blacklisted"] = entry_is_blacklisted templates.env.filters["discord_markdown"] = markdownify +templates.env.globals["get_backup_path"] = get_backup_path @app.post("/add_webhook") diff --git a/discord_rss_bot/templates/nav.html b/discord_rss_bot/templates/nav.html index 86a2dff..93f3f93 100644 --- a/discord_rss_bot/templates/nav.html +++ b/discord_rss_bot/templates/nav.html @@ -19,16 +19,18 @@