Update views_api.py

This commit is contained in:
Arc 2020-05-09 18:07:31 +01:00 committed by GitHub
parent a40823de43
commit e768e4b075
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,7 +88,7 @@ def api_ticket_create(form_id, sats):
try:
checking_id, payment_request = create_invoice(
wallet_id=form.wallet, amount=sats, memo=f"#lnticket {form_id}"
wallet_id=form.wallet, amount=int(sats), memo=f"#lnticket {form_id}"
)
except Exception as e:
return jsonify({"message": str(e)}), HTTPStatus.INTERNAL_SERVER_ERROR
@ -140,4 +140,4 @@ def api_ticket_delete(ticket_id):
delete_ticket(ticket_id)
return "", HTTPStatus.NO_CONTENT
return "", HTTPStatus.NO_CONTENT