Arafath10 commited on
Commit
d19fab8
·
verified ·
1 Parent(s): 7054c45

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -4
main.py CHANGED
@@ -215,7 +215,7 @@ def update_existingchat(tread_id,user_message,bot_message):
215
 
216
  # Helper function to get the order ID from the waybill number
217
  def get_order_id(waybill_no):
218
- url = f"https://dev3.api.curfox.parallaxtec.com/api/ml/order/{waybill_no}"
219
  response = requests.get(url, headers=AUTH_HEADERS)
220
  if response.status_code == 200:
221
  return response.json().get("data", {}).get("id")
@@ -230,9 +230,9 @@ async def fetch_data(session, url):
230
  # Asynchronous function to get all order data
231
  async def get_all_order_data(order_id):
232
  urls = [
233
- f"https://dev3.api.curfox.parallaxtec.com/api/ml/order/{order_id}/time-line",
234
- f"https://dev3.api.curfox.parallaxtec.com/api/ml/order/{order_id}/finance-time-line",
235
- f"https://dev3.api.curfox.parallaxtec.com/api/ml/order/{order_id}/invoice-time-line"
236
  ]
237
 
238
  async with aiohttp.ClientSession() as session:
 
215
 
216
  # Helper function to get the order ID from the waybill number
217
  def get_order_id(waybill_no):
218
+ url = f"https://dev7.api.curfox.parallaxtec.com/api/ml/order/{waybill_no}"
219
  response = requests.get(url, headers=AUTH_HEADERS)
220
  if response.status_code == 200:
221
  return response.json().get("data", {}).get("id")
 
230
  # Asynchronous function to get all order data
231
  async def get_all_order_data(order_id):
232
  urls = [
233
+ f"https://dev7.api.curfox.parallaxtec.com/api/ml/order/{order_id}/time-line",
234
+ f"https://dev7.api.curfox.parallaxtec.com/api/ml/order/{order_id}/finance-time-line",
235
+ f"https://dev7.api.curfox.parallaxtec.com/api/ml/order/{order_id}/invoice-time-line"
236
  ]
237
 
238
  async with aiohttp.ClientSession() as session: