Fred808 commited on
Commit
6d6da76
·
verified ·
1 Parent(s): c599d34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -338,7 +338,7 @@ async def update_user_profile_with_order(user_id: str, order_id: str):
338
  profile.order_ids = order_id
339
  await session.commit()
340
 
341
- def process_order_flow(user_id: str, message: str) -> str:
342
  state = user_state.get(user_id)
343
  if state and state.is_expired():
344
  state.reset()
@@ -430,7 +430,8 @@ def process_order_flow(user_id: str, message: str) -> str:
430
  return "Please enter a valid quantity (e.g., 1, 2, 3)."
431
  state.data["quantity"] = quantity
432
  state.step = 3
433
- return (f"You selected {found_dish} with {quantity} serving(s). Please provide your phone number and delivery address.")
 
434
  else:
435
  state.step = 2
436
  return f"You selected {found_dish}. How many servings would you like?"
 
338
  profile.order_ids = order_id
339
  await session.commit()
340
 
341
+ async def process_order_flow(user_id: str, message: str) -> str:
342
  state = user_state.get(user_id)
343
  if state and state.is_expired():
344
  state.reset()
 
430
  return "Please enter a valid quantity (e.g., 1, 2, 3)."
431
  state.data["quantity"] = quantity
432
  state.step = 3
433
+ return (f"You selected {found_dish} with {quantity} serving(s). "
434
+ "Please provide your phone number and delivery address.")
435
  else:
436
  state.step = 2
437
  return f"You selected {found_dish}. How many servings would you like?"