Skip to content

Commit

Permalink
Merge pull request #88 from jmckenna/main
Browse files Browse the repository at this point in the history
  • Loading branch information
jmckenna authored Sep 28, 2023
2 parents da5ed84 + 433ebfd commit 3eeda07
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions indexer/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,11 @@ def genericType_toAtts(orig, rid=None):
ret[d.key] = d.value
continue
ret[d.key] = list(flatten([ret[d.key], d.value]))
#cleanup a few properties, that have duplicate values
if 'txt_region' in ret:
ret['txt_region'] = list(set(ret['txt_region']))
if 'txt_nationality' in ret:
ret['txt_nationality'] = list(set(ret['txt_nationality']))
return ret

def _merge_prov(orig, prov):
Expand Down

0 comments on commit 3eeda07

Please sign in to comment.