From 1812b4a80393c13bf6a95aedf5578a6ecba5eac8 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sat, 14 Dec 2019 17:35:35 -0300 Subject: [PATCH] fix hexlify bytes -> str. --- LNbits/bolt11.py | 4 +-- LNbits/templates/wallet.html | 47 ++++++++++++++++++------------------ 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/LNbits/bolt11.py b/LNbits/bolt11.py index b7fbfc53f..a60ba7969 100644 --- a/LNbits/bolt11.py +++ b/LNbits/bolt11.py @@ -49,9 +49,9 @@ def decode(pr: str) -> Invoice: if tag == "d": invoice.description = trim_to_bytes(tagdata).decode("utf-8") elif tag == "h" and data_length == 52: - invoice.description = hexlify(trim_to_bytes(tagdata)) + invoice.description = str(hexlify(trim_to_bytes(tagdata))) elif tag == "p" and data_length == 52: - invoice.payment_hash = hexlify(trim_to_bytes(tagdata)) + invoice.payment_hash = str(hexlify(trim_to_bytes(tagdata))) return invoice diff --git a/LNbits/templates/wallet.html b/LNbits/templates/wallet.html index 18112e825..a6ba6bf8b 100644 --- a/LNbits/templates/wallet.html +++ b/LNbits/templates/wallet.html @@ -72,31 +72,32 @@ - - - -
-
- -
-
- -
-
+ + -
-
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+