# HG changeset patch # User Ludovic Chabant # Date 1490331764 25200 # Node ID d2e5228194f04c5012b8333c83b82471e8168c86 # Parent 49da205b4946a812adb8f14ede94f1ddbc39de03 linksto: Fix logic bug computing the "orphans" page list. diff -r 49da205b4946 -r d2e5228194f0 wikked/webimpl/special.py --- 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)