LNtickets now works

This commit is contained in:
arcbtc 2020-08-10 19:08:44 +01:00
parent 0603e525ff
commit c56784340e
2 changed files with 0 additions and 6 deletions

View File

@ -48,7 +48,6 @@ def update_ticket(paid: bool, checking_id: str) -> Tickets:
)
return get_ticket(checking_id)
def get_ticket(ticket_id: str) -> Optional[Tickets]:
with open_ext_db("lnticket") as db:
row = db.fetchone("SELECT * FROM tickets WHERE id = ?", (ticket_id,))

View File

@ -66,9 +66,6 @@ def api_form_delete(form_id):
return "", HTTPStatus.NO_CONTENT
#########tickets##########
@lnticket_ext.route("/api/v1/tickets", methods=["GET"])
@ -130,8 +127,6 @@ def api_ticket_send_ticket(checking_id):
return jsonify({"paid": False}), HTTPStatus.OK
@lnticket_ext.route("/api/v1/tickets/<ticket_id>", methods=["DELETE"])
@api_check_wallet_key("invoice")
def api_ticket_delete(ticket_id):