From 8090b792db486e638258503dde6702d3fc0a0bc4 Mon Sep 17 00:00:00 2001 From: liongrass Date: Tue, 14 Apr 2026 13:02:54 -0700 Subject: [PATCH] make maximum amount configurable --- models.py | 1 + static/index.vue | 8 ++++++++ views_lnurl.py | 4 ++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/models.py b/models.py index 493a93c..4387829 100644 --- a/models.py +++ b/models.py @@ -9,6 +9,7 @@ class Switch(BaseModel): pin: int = 0 comment: bool = False variable: bool = False + max_variable: int = 100 label: str | None = None diff --git a/static/index.vue b/static/index.vue index b6fafd8..37f714c 100644 --- a/static/index.vue +++ b/static/index.vue @@ -306,6 +306,14 @@ >Variable time (Amount * Duration) +