mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-13 10:20:51 +02:00
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)
|
return get_ticket(checking_id)
|
||||||
|
|
||||||
|
|
||||||
def get_ticket(ticket_id: str) -> Optional[Tickets]:
|
def get_ticket(ticket_id: str) -> Optional[Tickets]:
|
||||||
with open_ext_db("lnticket") as db:
|
with open_ext_db("lnticket") as db:
|
||||||
row = db.fetchone("SELECT * FROM tickets WHERE id = ?", (ticket_id,))
|
row = db.fetchone("SELECT * FROM tickets WHERE id = ?", (ticket_id,))
|
||||||
|
@ -66,9 +66,6 @@ def api_form_delete(form_id):
|
|||||||
|
|
||||||
return "", HTTPStatus.NO_CONTENT
|
return "", HTTPStatus.NO_CONTENT
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#########tickets##########
|
#########tickets##########
|
||||||
|
|
||||||
@lnticket_ext.route("/api/v1/tickets", methods=["GET"])
|
@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
|
return jsonify({"paid": False}), HTTPStatus.OK
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@lnticket_ext.route("/api/v1/tickets/<ticket_id>", methods=["DELETE"])
|
@lnticket_ext.route("/api/v1/tickets/<ticket_id>", methods=["DELETE"])
|
||||||
@api_check_wallet_key("invoice")
|
@api_check_wallet_key("invoice")
|
||||||
def api_ticket_delete(ticket_id):
|
def api_ticket_delete(ticket_id):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user