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,
|
wallet,
|
||||||
name,
|
name,
|
||||||
publickey,
|
publickey,
|
||||||
privatekey,
|
|
||||||
relays,
|
relays,
|
||||||
shippingzones
|
shippingzones
|
||||||
)
|
)
|
||||||
VALUES (?, ?, ?, ?, ?, ?, ?)
|
VALUES (?, ?, ?, ?, ?, ?)
|
||||||
""",
|
""",
|
||||||
(
|
(
|
||||||
stall_id,
|
stall_id,
|
||||||
data.wallet,
|
data.wallet,
|
||||||
data.name,
|
data.name,
|
||||||
data.publickey,
|
data.publickey,
|
||||||
data.privatekey,
|
|
||||||
data.relays,
|
data.relays,
|
||||||
data.shippingzones,
|
data.shippingzones,
|
||||||
),
|
),
|
||||||
|
|
|
@ -9,7 +9,6 @@ async def m001_initial(db):
|
||||||
wallet TEXT NOT NULL,
|
wallet TEXT NOT NULL,
|
||||||
name TEXT NOT NULL,
|
name TEXT NOT NULL,
|
||||||
publickey TEXT,
|
publickey TEXT,
|
||||||
privatekey TEXT,
|
|
||||||
relays TEXT,
|
relays TEXT,
|
||||||
shippingzones TEXT NOT NULL,
|
shippingzones TEXT NOT NULL,
|
||||||
rating INTEGER DEFAULT 0
|
rating INTEGER DEFAULT 0
|
||||||
|
|
|
@ -9,7 +9,6 @@ class Stalls(BaseModel):
|
||||||
wallet: str
|
wallet: str
|
||||||
name: str
|
name: str
|
||||||
publickey: Optional[str]
|
publickey: Optional[str]
|
||||||
privatekey: Optional[str]
|
|
||||||
relays: Optional[str]
|
relays: Optional[str]
|
||||||
shippingzones: str
|
shippingzones: str
|
||||||
|
|
||||||
|
@ -18,7 +17,6 @@ class createStalls(BaseModel):
|
||||||
wallet: str = Query(...)
|
wallet: str = Query(...)
|
||||||
name: str = Query(...)
|
name: str = Query(...)
|
||||||
publickey: str = Query(None)
|
publickey: str = Query(None)
|
||||||
privatekey: str = Query(None)
|
|
||||||
relays: str = Query(None)
|
relays: str = Query(None)
|
||||||
shippingzones: str = Query(...)
|
shippingzones: str = Query(...)
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ async def display(request: Request, stall_id):
|
||||||
)
|
)
|
||||||
|
|
||||||
stall = stall.dict()
|
stall = stall.dict()
|
||||||
del stall["privatekey"]
|
|
||||||
stall["zones"] = zones
|
stall["zones"] = zones
|
||||||
|
|
||||||
return shop_renderer().TemplateResponse(
|
return shop_renderer().TemplateResponse(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user