Extra donation fieldname

main
Bob Mottram 2024-08-12 18:41:09 +01:00
parent b91073ca7d
commit 723759066a
1 changed files with 4 additions and 2 deletions

View File

@ -47,7 +47,9 @@ def get_donation_url(actor_json: {}) -> str:
name_value = property_value['schema:name']
if not name_value:
continue
if name_value.lower() not in donation_type:
name_value_lower = name_value.lower()
if name_value_lower not in donation_type:
if 'support' not in name_value_lower:
continue
if not property_value.get('type'):
continue