From 961a2b957ed7cb5e8913faafda4d2a8517784444 Mon Sep 17 00:00:00 2001 From: Harry Date: Wed, 4 Jan 2023 06:48:27 +0000 Subject: [PATCH] Fixes dynamic routes with deferred init --- flask_sitemapper/sitemapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_sitemapper/sitemapper.py b/flask_sitemapper/sitemapper.py index 6fec326..1f034b6 100644 --- a/flask_sitemapper/sitemapper.py +++ b/flask_sitemapper/sitemapper.py @@ -91,7 +91,7 @@ def add_endpoint( # if extension is not yet initialized, register this as a deferred function and return if not self.app: self.deferred_functions.append( - lambda s: s.add_endpoint(view_func, lastmod, changefreq, priority) + lambda s: s.add_endpoint(view_func, lastmod, changefreq, priority, url_variables) ) return