mirror of https://gitlab.com/bashrc2/epicyon
Snake case
parent
06e7ed0ac3
commit
4c2b42f3ba
14
utils.py
14
utils.py
|
@ -56,19 +56,19 @@ def get_actor_languages_list(actor_json: {}) -> []:
|
|||
return lang_list
|
||||
elif isinstance(property_value['value'], str):
|
||||
lang_str = property_value['value']
|
||||
lang_listTemp = []
|
||||
lang_list_temp = []
|
||||
if ',' in lang_str:
|
||||
lang_listTemp = lang_str.split(',')
|
||||
lang_list_temp = lang_str.split(',')
|
||||
elif ';' in lang_str:
|
||||
lang_listTemp = lang_str.split(';')
|
||||
lang_list_temp = lang_str.split(';')
|
||||
elif '/' in lang_str:
|
||||
lang_listTemp = lang_str.split('/')
|
||||
lang_list_temp = lang_str.split('/')
|
||||
elif '+' in lang_str:
|
||||
lang_listTemp = lang_str.split('+')
|
||||
lang_list_temp = lang_str.split('+')
|
||||
elif ' ' in lang_str:
|
||||
lang_listTemp = lang_str.split(' ')
|
||||
lang_list_temp = lang_str.split(' ')
|
||||
lang_list = []
|
||||
for lang in lang_listTemp:
|
||||
for lang in lang_list_temp:
|
||||
lang = lang.strip()
|
||||
if lang not in lang_list:
|
||||
lang_list.append(lang)
|
||||
|
|
Loading…
Reference in New Issue