main
Bob Mottram 2024-08-12 11:59:59 +01:00
parent f3e3d526df
commit 15c8621f9f
1 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ def get_pronouns(actor_json: {}) -> str:
name_value = property_value['schema:name'].lower() name_value = property_value['schema:name'].lower()
if not name_value: if not name_value:
continue continue
if 'pronouns' not in name_value: if 'pronoun' not in name_value:
continue continue
if not property_value.get('type'): if not property_value.get('type'):
continue continue
@ -60,7 +60,7 @@ def set_pronouns(actor_json: {}, pronouns: str) -> None:
continue continue
if not property_value.get('type'): if not property_value.get('type'):
continue continue
if 'pronouns' not in name_value: if 'pronoun' not in name_value:
continue continue
property_found = property_value property_found = property_value
break break
@ -79,7 +79,7 @@ def set_pronouns(actor_json: {}, pronouns: str) -> None:
if not property_value.get('type'): if not property_value.get('type'):
continue continue
name_value = name_value.lower() name_value = name_value.lower()
if 'pronouns' not in name_value: if 'pronoun' not in name_value:
continue continue
if not property_value['type'].endswith('PropertyValue'): if not property_value['type'].endswith('PropertyValue'):
continue continue