From b051f7776cf702fa4bd02eece3663ff7bc795ea1 Mon Sep 17 00:00:00 2001 From: Ben Arc Date: Fri, 16 Apr 2021 22:09:56 +0100 Subject: [PATCH] s --- lnbits/extensions/copilot/lnurl.py | 4 ++-- lnbits/extensions/copilot/views.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lnbits/extensions/copilot/lnurl.py b/lnbits/extensions/copilot/lnurl.py index c2ba21ee..e2655134 100644 --- a/lnbits/extensions/copilot/lnurl.py +++ b/lnbits/extensions/copilot/lnurl.py @@ -67,7 +67,7 @@ async def lnurl_callback(cp_id): wallet_id=cp.wallet, amount=int(amount_received / 1000), memo=cp.lnurl_title, - webhook=url_for("copilot.api_copilot_hooker", copilot_id=cp_id, amount=int(amount_received / 1000), _external=False), + webhook=url_for("copilot.api_copilot_hooker", copilot_id=cp_id, amount=int(amount_received / 1000), _external=True), description_hash=hashlib.sha256((LnurlPayMetadata(json.dumps([["text/plain", str(cp.lnurl_title)]]))).encode("utf-8")).digest(), extra={"tag": "copilot", "comment": comment}, ) @@ -77,5 +77,5 @@ async def lnurl_callback(cp_id): disposable=False, routes=[], ) - print(url_for("copilot.api_copilot_hooker", copilot_id=cp_id, amount=int(amount_received / 1000), _external=False)) + print(url_for("copilot.api_copilot_hooker", copilot_id=cp_id, amount=int(amount_received / 1000), _external=True)) return jsonify(resp.dict()) \ No newline at end of file diff --git a/lnbits/extensions/copilot/views.py b/lnbits/extensions/copilot/views.py index cfd28c26..443a579f 100644 --- a/lnbits/extensions/copilot/views.py +++ b/lnbits/extensions/copilot/views.py @@ -67,6 +67,7 @@ async def panel(copilot_id): @copilot_ext.route("/api/v1/copilot/hook///", methods=["GET"]) async def api_copilot_hooker(copilot_id, amount): print("amount") + data = "" copilot = await get_copilot(copilot_id) print("amount") if not copilot: