From 5c34c236170896aae9c141c0560f7c9057e9cef9 Mon Sep 17 00:00:00 2001 From: Arc <33088785+arcbtc@users.noreply.github.com> Date: Sat, 18 Apr 2020 01:37:31 +0100 Subject: [PATCH] Update crud.py --- lnbits/extensions/amilk/crud.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lnbits/extensions/amilk/crud.py b/lnbits/extensions/amilk/crud.py index 270e3ae..0bd5486 100644 --- a/lnbits/extensions/amilk/crud.py +++ b/lnbits/extensions/amilk/crud.py @@ -7,15 +7,15 @@ from lnbits.db import open_ext_db from .models import AMilk -def create_amilk(*, wallet_id: str, url: str, memo: str, amount: int) -> AMilk: +def create_amilk(*, wallet_id: str, lnurl: str, atime: int, amount: int) -> AMilk: with open_ext_db("amilk") as db: amilk_id = urlsafe_b64encode(uuid4().bytes_le).decode('utf-8') db.execute( """ - INSERT INTO amilks (id, wallet, url, memo, amount) + INSERT INTO amilks (id, wallet, lnurl, atime, amount) VALUES (?, ?, ?, ?, ?) """, - (amilk_id, wallet_id, url, memo, amount), + (amilk_id, wallet_id, lnurl, atime, amount), ) return get_amilk(amilk_id)