From bb5b04b307ec519536361f9309f57ad79e0bdc84 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 17 May 2022 21:55:39 +0100 Subject: [PATCH] Added max amount to withdraw creation --- lnbits/extensions/withdraw/models.py | 2 +- lnbits/extensions/withdraw/templates/withdraw/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lnbits/extensions/withdraw/models.py b/lnbits/extensions/withdraw/models.py index a03c7db8..72b75fb8 100644 --- a/lnbits/extensions/withdraw/models.py +++ b/lnbits/extensions/withdraw/models.py @@ -12,7 +12,7 @@ class CreateWithdrawData(BaseModel): title: str = Query(...) min_withdrawable: int = Query(..., ge=1) max_withdrawable: int = Query(..., ge=1) - uses: int = Query(..., ge=1) + uses: int = Query(..., ge=1, le=250) wait_time: int = Query(..., ge=1) is_unique: bool diff --git a/lnbits/extensions/withdraw/templates/withdraw/index.html b/lnbits/extensions/withdraw/templates/withdraw/index.html index 13673028..c7c216ce 100644 --- a/lnbits/extensions/withdraw/templates/withdraw/index.html +++ b/lnbits/extensions/withdraw/templates/withdraw/index.html @@ -132,7 +132,7 @@ - +