A human item replaced with a redirect causes confusion.
This commit is contained in:
parent
b77ba57b74
commit
d0ddcc96eb
|
@ -39,6 +39,8 @@ def from_name(name):
|
||||||
|
|
||||||
found = []
|
found = []
|
||||||
for entity in mediawiki.get_entities_with_cache(qids, props='labels|descriptions'):
|
for entity in mediawiki.get_entities_with_cache(qids, props='labels|descriptions'):
|
||||||
|
if 'redirects' in entity:
|
||||||
|
continue
|
||||||
qid = entity['id']
|
qid = entity['id']
|
||||||
item = lookup[qid]
|
item = lookup[qid]
|
||||||
i = {
|
i = {
|
||||||
|
|
Loading…
Reference in a new issue