Celeskry commited on
Commit
1196f40
·
verified ·
1 Parent(s): 6fa96e4

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -1
main.py CHANGED
@@ -228,6 +228,7 @@ class GmailRequest(BaseModel):
228
  status: str
229
  total_price: str
230
  products: List[ProductItem]
 
231
 
232
  @app.post("/api/v1/gmail/create")
233
  async def create_gmail_notif(
@@ -244,7 +245,8 @@ async def create_gmail_notif(
244
  order_id=data.order_id,
245
  status=data.status,
246
  products=[p.dict() for p in data.products],
247
- total_price=data.total_price
 
248
  )
249
 
250
  if not res["ok"]:
 
228
  status: str
229
  total_price: str
230
  products: List[ProductItem]
231
+ from_name: Optional[str] = "Celeste Store"
232
 
233
  @app.post("/api/v1/gmail/create")
234
  async def create_gmail_notif(
 
245
  order_id=data.order_id,
246
  status=data.status,
247
  products=[p.dict() for p in data.products],
248
+ total_price=data.total_price,
249
+ from_name=data.from_name
250
  )
251
 
252
  if not res["ok"]: