From b9c07065d007060a89f40d2570cf0db329aade25 Mon Sep 17 00:00:00 2001 From: Johnny Santos Date: Fri, 29 Mar 2024 12:01:46 -0300 Subject: [PATCH] Add log to failing url --- crud.py | 2 ++ templates/lnurldevice/index.html | 1 + 2 files changed, 3 insertions(+) diff --git a/crud.py b/crud.py index ac7462f..7e68852 100644 --- a/crud.py +++ b/crud.py @@ -56,6 +56,8 @@ async def update_lnurldevice( if data.switches: url = req.url_for("lnurldevice.lnurl_v2_params", device_id=lnurldevice_id) + print(f"URL: {url}") + for _switch in data.switches: _switch.lnurl = lnurl_encode( str(url) diff --git a/templates/lnurldevice/index.html b/templates/lnurldevice/index.html index 1bdcf36..c5191f9 100644 --- a/templates/lnurldevice/index.html +++ b/templates/lnurldevice/index.html @@ -577,6 +577,7 @@
} this.formDialoglnurldevice.data.switches.push({ amount: 10, + description: '', pin: 0, duration: 1000, variable: false,