From 9dc5f43fa0d2fdad538db64bcc3fa5c308c44986 Mon Sep 17 00:00:00 2001 From: forest Date: Tue, 14 Dec 2021 01:42:26 -0600 Subject: [PATCH] fixing nested string literals --- capsulflask/payment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/capsulflask/payment.py b/capsulflask/payment.py index d621827..c1916de 100644 --- a/capsulflask/payment.py +++ b/capsulflask/payment.py @@ -40,9 +40,9 @@ def validate_dollars(min: decimal.Decimal, max: decimal.Decimal): #current_app.logger.info(f"{str(dollars)} {str(min)} {str(dollars < min)}") if dollars and dollars < min: - errors.append(f"dollars must be {format(min, ".2f")} or more") + errors.append(f"dollars must be {format(min, '.2f')} or more") elif dollars and dollars >= max: - errors.append(f"dollars must be less than {format(max, ".2f")}") + errors.append(f"dollars must be less than {format(max, '.2f')}") current_app.logger.info(f"{len(errors)} {errors}") return [dollars, errors]