mirror of https://gitlab.com/bashrc2/epicyon
Other way around
parent
0a8b392bb2
commit
139b1a4da6
|
|
@ -31,7 +31,7 @@ def get_donation_url(actor_json: {}) -> str:
|
||||||
return ''
|
return ''
|
||||||
if not isinstance(actor_json['attachment'], list):
|
if not isinstance(actor_json['attachment'], list):
|
||||||
return ''
|
return ''
|
||||||
donation_type = _get_donation_types()
|
donation_type_list = _get_donation_types()
|
||||||
for property_value in actor_json['attachment']:
|
for property_value in actor_json['attachment']:
|
||||||
name_value = None
|
name_value = None
|
||||||
if property_value.get('name'):
|
if property_value.get('name'):
|
||||||
|
|
@ -42,8 +42,8 @@ def get_donation_url(actor_json: {}) -> str:
|
||||||
continue
|
continue
|
||||||
name_value_lower = name_value.lower()
|
name_value_lower = name_value.lower()
|
||||||
found = False
|
found = False
|
||||||
for donation_type_str in donation_type:
|
for donation_type_str in donation_type_list:
|
||||||
if name_value_lower in donation_type_str:
|
if donation_type_str in name_value_lower:
|
||||||
found = True
|
found = True
|
||||||
break
|
break
|
||||||
if not found:
|
if not found:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue