diff --git a/__pycache__/crud.cpython-39.pyc b/__pycache__/crud.cpython-39.pyc index fd469a1..a347eeb 100644 Binary files a/__pycache__/crud.cpython-39.pyc and b/__pycache__/crud.cpython-39.pyc differ diff --git a/__pycache__/migrations.cpython-39.pyc b/__pycache__/migrations.cpython-39.pyc index 9fbe114..68fa251 100644 Binary files a/__pycache__/migrations.cpython-39.pyc and b/__pycache__/migrations.cpython-39.pyc differ 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 + + + + + ${ col.value } + + + + + + @@ -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) }}
Simple extension you can use as a base for your own extension. Includes very simple LNURL-pay and LNURL-withdraw example.