remove private key everywhere

This commit is contained in:
Tiago Vasconcelos 2022-12-21 17:44:37 +00:00
parent f1f68658d2
commit 8037557db6
4 changed files with 2 additions and 7 deletions

View File

@ -148,18 +148,16 @@ async def create_shop_stall(data: createStalls) -> Stalls:
wallet,
name,
publickey,
privatekey,
relays,
shippingzones
)
VALUES (?, ?, ?, ?, ?, ?, ?)
VALUES (?, ?, ?, ?, ?, ?)
""",
(
stall_id,
data.wallet,
data.name,
data.publickey,
data.privatekey,
data.relays,
data.shippingzones,
),

View File

@ -9,7 +9,6 @@ async def m001_initial(db):
wallet TEXT NOT NULL,
name TEXT NOT NULL,
publickey TEXT,
privatekey TEXT,
relays TEXT,
shippingzones TEXT NOT NULL,
rating INTEGER DEFAULT 0

View File

@ -9,7 +9,6 @@ class Stalls(BaseModel):
wallet: str
name: str
publickey: Optional[str]
privatekey: Optional[str]
relays: Optional[str]
shippingzones: str
@ -18,7 +17,6 @@ class createStalls(BaseModel):
wallet: str = Query(...)
name: str = Query(...)
publickey: str = Query(None)
privatekey: str = Query(None)
relays: str = Query(None)
shippingzones: str = Query(...)

View File

@ -54,7 +54,7 @@ async def display(request: Request, stall_id):
)
stall = stall.dict()
del stall["privatekey"]
stall["zones"] = zones
return shop_renderer().TemplateResponse(