WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 7a882bf

Browse files
committed
force entity roles to be lower case, resolves #45
1 parent aa809e6 commit 7a882bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

whoisit/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def extract_entities(self, entities=None):
264264
self.parsed['entities'].setdefault(role, [])
265265
# ignore duplicate entity per role
266266
if parsed_entity not in self.parsed['entities'].get(role, []):
267-
self.parsed['entities'][role].append(parsed_entity)
267+
self.parsed['entities'][role.lower()].append(parsed_entity)
268268
if entity.get('entities'):
269269
self.extract_entities(entities=entity.get('entities'))
270270

0 commit comments

Comments
 (0)