Added pydantic to models

This commit is contained in:
Ben Arc
2021-08-20 14:46:08 +01:00
parent c525655c15
commit 8dea1e28f0
18 changed files with 65 additions and 55 deletions
+3 -2
View File
@@ -1,10 +1,11 @@
import json
from sqlite3 import Row
from typing import NamedTuple, Optional
from pydantic import BaseModel
from typing import Optional
class Paywall(NamedTuple):
class Paywall(BaseModel):
id: str
wallet: str
url: str