X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/150c16b9cecccacdbf17360d334fc618172f4179..eeb6424401e4ab36f9bcdb017b36b2957a4e06f2:/src/funding/models.py?ds=sidebyside diff --git a/src/funding/models.py b/src/funding/models.py index 7d0e74247..089b875b1 100644 --- a/src/funding/models.py +++ b/src/funding/models.py @@ -1,3 +1,4 @@ + # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # @@ -204,7 +205,7 @@ class Offer(models.Model): 'is_current': self.is_current(), 'is_win': offer_sum >= self.target, 'missing': self.target - offer_sum, - 'percentage': 100 * offer_sum / self.target, + 'percentage': min(100, 100 * offer_sum / self.target), 'show_title': True, 'show_title_calling': True,