Skip to content

Commit

Permalink
Fixes dynamic routes with deferred init
Browse files Browse the repository at this point in the history
  • Loading branch information
h-janes authored Jan 4, 2023
1 parent d49c338 commit 961a2b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_sitemapper/sitemapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 961a2b9

Please sign in to comment.