From c749da80ddfbeb67906fcd3ed2177d2344f6e6e9 Mon Sep 17 00:00:00 2001 From: arcbtc Date: Thu, 28 Dec 2023 21:53:57 +0000 Subject: [PATCH] Fixed create --- __pycache__/crud.cpython-39.pyc | Bin 2318 -> 2338 bytes __pycache__/migrations.cpython-39.pyc | Bin 839 -> 821 bytes crud.py | 5 +- templates/temp/index.html | 141 +++++++++++++++----------- 4 files changed, 83 insertions(+), 63 deletions(-) diff --git a/__pycache__/crud.cpython-39.pyc b/__pycache__/crud.cpython-39.pyc index fd469a100b857565253f20260c9ad3414432a35b..a347eeb0d51e14ba8f4b5f21016364aeec096aec 100644 GIT binary patch delta 617 zcmeAZS|r4q$ji&cz`($8?nZCw{*Amzj9eTH3=D@E7#ND(CRZ}b>!-0UWb$N4VenvJ zWGG>)VQOZC@M@WBn2Vjf7*d#;8Jieun1dNKnf2_ zQ2_JHGfOg3iW18qf|I$KWG1UHSunCsj%AXXT*u_YC_4ExlfSwY$Tf^?j4X^ytW1nd zj4UAdo9Q?^=Gi*J3=9mnn2Ykui$ob17$Afgh$Y0pz#s?m z0}I$R5ym2+$y_Y|jX=sY8H+f8#$;m7(NzTtLu+y4s%^L0i za?>rw!domw`Q^nBg1G1^rATjb0!M@%$amo2F9JEKNCRX&*tL2f7T6R7AvXCLha$U(2#W%j G04D&r<$PZN delta 581 zcmZ1^)F;H7$ji&cz`(%ZwX!#L+eY3bMlMbU28P273=G9ylPekJjcXXQ*wWY*GI=tj zFnBO9GL*2_Ff}tmc(u$m%*AeA3@J>_j7^L+%)tzr%zjmAlaDi6i9D<*qJj>%O_Qf#bXC6gyJ`7(-4e#qp{C^OlRSww`9yXG z1_lOArXrEa;mosjL>L$tZZQ|-mlugKFfc#}aS%(Gfq_9DC(mbE0RRdP4ln=! delta 60 zcmdnWcASkjk(ZZ?fq{X+Yh`chfr-2m7=KKhr@@(8QIeWhoSC1u@z{Ju#)QdfOzH@+ I$-PV~09peTZU6uP diff --git a/crud.py b/crud.py index aae73c0..4179d49 100644 --- a/crud.py +++ b/crud.py @@ -11,14 +11,13 @@ async def create_temp(wallet_id: str, data: CreateTempData) -> Temp: temp_id = urlsafe_short_hash() await db.execute( """ - INSERT INTO tempextension.temp (id, wallet, name, total) - VALUES (?, ?, ?, ?) + INSERT INTO tempextension.temp (id, wallet, name, lnurlpayamount, lnurlwithdrawamount) + VALUES (?, ?, ?, ?, ?) """, ( temp_id, wallet_id, data.name, - data.total, data.lnurlpayamount, data.lnurlwithdrawamount ), diff --git a/templates/temp/index.html b/templates/temp/index.html index 075341d..2662be2 100644 --- a/templates/temp/index.html +++ b/templates/temp/index.html @@ -7,7 +7,7 @@ New Temp - + @@ -29,14 +29,47 @@ :pagination.sync="tempsTable.pagination" > - - - + ${ col.label } + LNURL-pay + LNURL-withdraw + + + @@ -46,6 +79,7 @@
{{SITE_TITLE}} Temp extension
+

Simple extension you can use as a base for your own extension.
Includes very simple LNURL-pay and LNURL-withdraw example.

@@ -79,14 +113,16 @@
Create Temp @@ -137,24 +173,13 @@
{% endblock %} {% block scripts %} {{ window_vars(user) }}