changeset 423:d2e5228194f0

linksto: Fix logic bug computing the "orphans" page list.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 23 Mar 2017 22:02:44 -0700
parents 49da205b4946
children 1066d0986082
files wikked/webimpl/special.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/wikked/webimpl/special.py	Thu Mar 23 22:02:16 2017 -0700
+++ b/wikked/webimpl/special.py	Thu Mar 23 22:02:44 2017 -0700
@@ -34,7 +34,7 @@
                 no_endpoint_only=True,
                 fields=['url', 'title', 'meta', 'links']):
             pages[p.url] = p
-            rev_links[p.url] = 0
+            rev_links.setdefault(p.url, 0)
 
             for l in p.links:
                 abs_l = get_absolute_url(p.url, l)