Extra donation string

main
Bob Mottram 2024-08-12 22:03:30 +01:00
parent 13049c095c
commit ce69d66739
1 changed files with 4 additions and 3 deletions

View File

@ -50,9 +50,10 @@ def get_donation_url(actor_json: {}) -> str:
continue
name_value_lower = name_value.lower()
if name_value_lower not in donation_type:
if 'support' not in name_value_lower:
if 'buy me ' not in name_value_lower:
continue
if 'support' not in name_value_lower and \
'buy me ' not in name_value_lower and \
'fund' not in name_value_lower:
continue
if not property_value.get('type'):
continue
prop_value_name, prop_value = \