From 120952614772c85e118e44646d784230c6e0b25e Mon Sep 17 00:00:00 2001 From: calle <93376500+callebtc@users.noreply.github.com> Date: Fri, 18 Mar 2022 18:51:28 +0100 Subject: [PATCH 1/2] remove get_payment_status (#562) * remove get_payment_status * remove comments --- lnbits/core/services.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lnbits/core/services.py b/lnbits/core/services.py index 875f7644c..3d54e218d 100644 --- a/lnbits/core/services.py +++ b/lnbits/core/services.py @@ -321,10 +321,7 @@ async def check_invoice_status( payment = await get_wallet_payment(wallet_id, payment_hash, conn=conn) if not payment: return PaymentStatus(None) - if payment.is_out: - status = await WALLET.get_payment_status(payment.checking_id) - else: - status = await WALLET.get_invoice_status(payment.checking_id) + status = await WALLET.get_invoice_status(payment.checking_id) if not payment.pending: return status if payment.is_out and status.failed: From a17108f108d79822ba86e92ae739a9aa077995f1 Mon Sep 17 00:00:00 2001 From: Arc <33088785+arcbtc@users.noreply.github.com> Date: Tue, 22 Mar 2022 19:25:30 +0000 Subject: [PATCH 2/2] Update installation.md --- docs/devs/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/devs/installation.md b/docs/devs/installation.md index e20bbd214..cbf234cc9 100644 --- a/docs/devs/installation.md +++ b/docs/devs/installation.md @@ -13,7 +13,7 @@ LNbits uses [Pipenv][pipenv] to manage Python packages. git clone https://github.com/lnbits/lnbits-legend.git cd lnbits-legend/ -sudo apt-get install -y python3-venv +sudo apt-get install pipenv pipenv shell # pipenv --python 3.9 shell (if you wish to use a version of Python higher than 3.7) pipenv install --dev