Trying to add query params

This commit is contained in:
Ben Arc
2021-08-21 19:04:10 +01:00
parent d20c3ce119
commit 2fb16d0382
3 changed files with 14 additions and 13 deletions
+6 -4
View File
@@ -1,7 +1,9 @@
from typing import NamedTuple
from sqlite3 import Row
from pydantic import BaseModel
#from typing import NamedTuple
class Events(NamedTuple):
class Events(BaseModel):
id: str
wallet: str
name: str
@@ -15,7 +17,7 @@ class Events(NamedTuple):
time: int
class Tickets(NamedTuple):
class Tickets(BaseModel):
id: str
wallet: str
event: str
@@ -23,4 +25,4 @@ class Tickets(NamedTuple):
email: str
registered: bool
paid: bool
time: int
time: int