From d0ddcc96eb674a45cb5317d7cd3d248038652b37 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 7 Jan 2020 15:10:59 +0000 Subject: [PATCH] A human item replaced with a redirect causes confusion. --- depicts/human.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/depicts/human.py b/depicts/human.py index 60544eb..e5586d0 100644 --- a/depicts/human.py +++ b/depicts/human.py @@ -39,6 +39,8 @@ def from_name(name): found = [] for entity in mediawiki.get_entities_with_cache(qids, props='labels|descriptions'): + if 'redirects' in entity: + continue qid = entity['id'] item = lookup[qid] i = {