debugging validate dollars
This commit is contained in:
parent
2b14627319
commit
f5d70c0b88
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user