events fix tickets not showing in index.html

This commit is contained in:
Tiago vasconcelos
2021-10-20 10:54:17 +01:00
parent 552fa8edc6
commit 39eb9d0d70
3 changed files with 10 additions and 5 deletions
+3
View File
@@ -74,6 +74,9 @@ async def get_tickets(wallet_ids: Union[str, List[str]]) -> List[Tickets]:
async def delete_ticket(payment_hash: str) -> None:
await db.execute("DELETE FROM events.ticket WHERE id = ?", (payment_hash,))
async def delete_event_tickets(event_id: str) -> None:
await db.execute("DELETE FROM events.tickets WHERE event = ?", (event_id,))
# EVENTS