check errors and adapt sql for older sqlite versions.

This commit is contained in:
fiatjaf
2019-12-15 18:15:00 +00:00
parent 0ddf6f76c9
commit 76403793c0
3 changed files with 43 additions and 24 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ class LntxbotWallet(Wallet):
def create_invoice(self, amount: int, memo: str = "") -> WalletResponse:
return requests.post(
url=f"{self.endpoint}/addinvoice", headers=self.auth_invoice, json={"amt": amount, "memo": memo}
url=f"{self.endpoint}/addinvoice", headers=self.auth_invoice, json={"amt": str(amount), "memo": memo}
)
def pay_invoice(self, bolt11: str) -> WalletResponse: