Arafath10 commited on
Commit
8233aaf
·
verified ·
1 Parent(s): 46c1168

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -18,7 +18,7 @@ async def your_continuous_function():
18
  combined_df = pd.DataFrame()
19
 
20
  # Loop through pages 1 to 4
21
- for page in range(1,2):
22
  try:
23
  # Update the payload for each page
24
  url = "https://dev3.api.curfox.parallaxtec.com/api/admin/test-dataset?sort=id&paginate=2000&page="+str(page)
@@ -51,7 +51,7 @@ async def your_continuous_function():
51
  data = data[['delivery_possibility','status.name']]
52
  data = data[data['delivery_possibility'].between(0, 100)]
53
 
54
- await asyncio.sleep(30) # Adjust the sleep interval as needed
55
 
56
  # Create a startup event.
57
  @app.on_event("startup")
 
18
  combined_df = pd.DataFrame()
19
 
20
  # Loop through pages 1 to 4
21
+ for page in range(1,6):
22
  try:
23
  # Update the payload for each page
24
  url = "https://dev3.api.curfox.parallaxtec.com/api/admin/test-dataset?sort=id&paginate=2000&page="+str(page)
 
51
  data = data[['delivery_possibility','status.name']]
52
  data = data[data['delivery_possibility'].between(0, 100)]
53
 
54
+ await asyncio.sleep(43200) # Adjust the sleep interval as needed
55
 
56
  # Create a startup event.
57
  @app.on_event("startup")