diff --git a/liberapay/payin/cron.py b/liberapay/payin/cron.py
index 9754fd447..b755e0eab 100644
--- a/liberapay/payin/cron.py
+++ b/liberapay/payin/cron.py
@@ -334,7 +334,7 @@ def execute_scheduled_payins():
force_email=True,
)
counts['renewal_unauthorized'] += 1
- return
+ continue
if payin.status == 'failed' and route.status == 'expired':
can_retry = db.one("""
SELECT count(*) > 0
diff --git a/liberapay/utils/cbor.py b/liberapay/utils/cbor.py
index b9fa8ea2d..9a1728131 100644
--- a/liberapay/utils/cbor.py
+++ b/liberapay/utils/cbor.py
@@ -29,10 +29,10 @@ def encode_date(encoder, value):
def decode_date(decoder, value, shareable_index=None):
- if type(value) == str:
+ if type(value) is str:
# We used to encode dates as strings. The original spec allowed it.
return date(*map(int, value.split('-')))
- elif type(value) == int:
+ elif type(value) is int:
return EPOCH + timedelta(days=value)
else:
raise TypeError("expected str or int, got %r" % type(value))
diff --git a/www/about/payment-processors.spt b/www/about/payment-processors.spt
index 6c76b06b2..39ad829d2 100644
--- a/www/about/payment-processors.spt
+++ b/www/about/payment-processors.spt
@@ -17,7 +17,7 @@ title = _("Payment Processors")
- {{ _("The payment processing fees are usually lower with Stripe than with PayPal.") }}
- {{ _("Stripe allows renewing donations automatically, whereas PayPal currently requires donors to confirm every payment.") }}
- - {{ _("Donations through Stripe can be secret, whereas PayPal always allows donors and recipients to see each other's names and email addresses.") }}}
+ - {{ _("Donations through Stripe can be secret, whereas PayPal always allows donors and recipients to see each other's names and email addresses.") }}
- {{ _("Stripe allows donating to multiple creators at once in some cases, whereas PayPal always requires separate payments.") }}
- {{ _("PayPal payments require redirecting the donor to PayPal's website, whereas Stripe is integrated into Liberapay.") }}
- {{ _("Stripe makes SEPA Direct Debits easy for European donors.") }}
diff --git a/www/admin/schedules.spt b/www/admin/schedules.spt
index 4c5e16af0..28e9e48e6 100644
--- a/www/admin/schedules.spt
+++ b/www/admin/schedules.spt
@@ -118,9 +118,9 @@ title = "Scheduled Payments Admin"
% else
n/a |
% endif
- % set percent_automatic_executed = row.n_automatic_executed / row.n_all * 100
+ % set percent_automatic_executed = row.n_automatic_executed / row.n_automatic * 100
= 100 and percent_automatic_executed < 90 and row.execution_date < today %} class="warning" {% endif %}>{{ '%.1f' % percent_automatic_executed }} |
- % set percent_manual_executed = row.n_manual_executed / row.n_all * 100
+ % set percent_manual_executed = row.n_manual_executed / row.n_manual * 100
{{ '%.1f' % percent_manual_executed }} |
% set percent_blocked = row.n_blocked / row.n_all * 100
= 100 and percent_blocked >= 15 %} class="warning" {% endif %}>{{ '%.1f' % percent_blocked }} |