Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def update_donation_data(self) -> None:
"""Update donation data.
As of 5.0 it just updates the list of donations. There may be more donation-related updating in future versions.
"""
if self.number_of_donations > 0:
self.donation_list = donation.get_donations(self.donation_list, self.donation_url)