remove private key everywhere
This commit is contained in:
parent
f1f68658d2
commit
8037557db6
|
@ -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,
|
||||
),
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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(...)
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ async def display(request: Request, stall_id):
|
|||
)
|
||||
|
||||
stall = stall.dict()
|
||||
del stall["privatekey"]
|
||||
|
||||
stall["zones"] = zones
|
||||
|
||||
return shop_renderer().TemplateResponse(
|
||||
|
|
Loading…
Reference in New Issue
Block a user