From 723759066ac92bdfcb341f38408e0a7213d14e31 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 12 Aug 2024 18:41:09 +0100 Subject: [PATCH] Extra donation fieldname --- donate.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/donate.py b/donate.py index 13e89de1c..f4d85c16e 100644 --- a/donate.py +++ b/donate.py @@ -47,8 +47,10 @@ 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: - continue + 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 prop_value_name, prop_value = \