LNtickets now works
This commit is contained in:
parent
0603e525ff
commit
c56784340e
|
@ -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,))
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user