fixing nested string literals
This commit is contained in:
parent
79742278c5
commit
9dc5f43fa0
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user