diff --git a/templates/events/index.html b/templates/events/index.html index 2125893..57afb19 100644 --- a/templates/events/index.html +++ b/templates/events/index.html @@ -387,9 +387,7 @@
this.g.user.wallets[0].inkey ) .then(function (response) { - console.log(response) self.tickets = response.data.map(function (obj) { - console.log(obj) return mapEvents(obj) }) }) @@ -464,21 +462,13 @@
}, updateformDialog: function (formId) { var link = _.findWhere(this.events, {id: formId}) - console.log(link.id) - this.formDialog.data.id = link.id - this.formDialog.data.wallet = link.wallet - this.formDialog.data.name = link.name - this.formDialog.data.info = link.info - this.formDialog.data.closing_date = link.closing_date - this.formDialog.data.event_start_date = link.event_start_date - this.formDialog.data.event_end_date = link.event_end_date - this.formDialog.data.amount_tickets = link.amount_tickets - this.formDialog.data.price_per_ticket = link.price_per_ticket + + this.formDialog.data = {...link} + this.formDialog.show = true }, updateEvent: function (wallet, data) { var self = this - console.log(data) LNbits.api .request( diff --git a/templates/events/ticket.html b/templates/events/ticket.html index e8fcd79..e2f4166 100644 --- a/templates/events/ticket.html +++ b/templates/events/ticket.html @@ -12,11 +12,15 @@

- +
- Print + Print @@ -38,4 +42,4 @@
} }) -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/views_api.py b/views_api.py index cad2cb6..c0d9809 100644 --- a/views_api.py +++ b/views_api.py @@ -3,7 +3,7 @@ from fastapi import Depends, Query from starlette.exceptions import HTTPException -from lnbits.core.crud import get_user, get_standalone_payment +from lnbits.core.crud import get_standalone_payment, get_user from lnbits.core.services import create_invoice from lnbits.decorators import WalletTypeInfo, get_key_type