fixing nested string literals

This commit is contained in:
forest 2021-12-14 01:42:26 -06:00
parent 79742278c5
commit 9dc5f43fa0
1 changed files with 2 additions and 2 deletions

View File

@ -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]