From e0a6b70f2eb1f29bbe4eccd1df0aabebad4a03ca Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sun, 22 Nov 2020 15:50:58 +0100 Subject: [PATCH] Add: ensure that new pages are also shown in the sitemap New pages that had no links to any other page yet where not seen by the sitemap. After a restart they always were, but this fixes the time in between. --- truewiki/metadata.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/truewiki/metadata.py b/truewiki/metadata.py index a8b85b6..cc2a3e0 100644 --- a/truewiki/metadata.py +++ b/truewiki/metadata.py @@ -178,6 +178,9 @@ def _analyze_page(page): wiki_page = WikiPage(page_name) wtp = wiki_page.prepare(body) + # Ensure the page now exists in our list of pages. + PAGES[page] + # Index this page again. for callback in CALLBACKS: callback(wtp, wiki_page, page)