mirror of https://gitlab.com/bashrc2/epicyon
Snake case
parent
8d259d25a0
commit
06e7ed0ac3
|
@ -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 = [
|
||||
|
|
22
utils.py
22
utils.py
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue