Snake case

main
Bob Mottram 2021-12-26 10:38:02 +00:00
parent 8d259d25a0
commit 06e7ed0ac3
2 changed files with 12 additions and 12 deletions

View File

@ -109,7 +109,7 @@ RDF_FIRST = RDF + 'first'
RDF_REST = RDF + 'rest'
RDF_NIL = RDF + 'nil'
RDF_TYPE = RDF + 'type'
RDF_LANGSTRING = RDF + 'langString'
RDF_LANGSTRING = RDF + 'lang_string'
# JSON-LD keywords
KEYWORDS = [

View File

@ -55,18 +55,18 @@ def get_actor_languages_list(actor_json: {}) -> []:
lang_list.sort()
return lang_list
elif isinstance(property_value['value'], str):
langStr = property_value['value']
lang_str = property_value['value']
lang_listTemp = []
if ',' in langStr:
lang_listTemp = langStr.split(',')
elif ';' in langStr:
lang_listTemp = langStr.split(';')
elif '/' in langStr:
lang_listTemp = langStr.split('/')
elif '+' in langStr:
lang_listTemp = langStr.split('+')
elif ' ' in langStr:
lang_listTemp = langStr.split(' ')
if ',' in lang_str:
lang_listTemp = lang_str.split(',')
elif ';' in lang_str:
lang_listTemp = lang_str.split(';')
elif '/' in lang_str:
lang_listTemp = lang_str.split('/')
elif '+' in lang_str:
lang_listTemp = lang_str.split('+')
elif ' ' in lang_str:
lang_listTemp = lang_str.split(' ')
lang_list = []
for lang in lang_listTemp:
lang = lang.strip()