debugging validate dollars

This commit is contained in:
forest 2021-12-14 01:37:39 -06:00
parent 2b14627319
commit f5d70c0b88
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,7 @@ def validate_dollars(min: float, max: float):
elif dollars and dollars >= maxAsDecimal:
errors.append(f"dollars must be less than {str(maxAsDecimal)}")
current_app.logger.info(f"{len(errors)} {errors}")
return [dollars, errors]
@bp.route("/btcpay", methods=("GET", "POST"))
@ -60,6 +61,7 @@ def btcpay_payment():
if request.method == "POST":
dollars, errors = validate_dollars(0.01, 1000)
current_app.logger.info(f"{len(errors)} {errors}")
if len(errors) == 0:
try: