Arafath10 commited on
Commit
3b7ebee
·
verified ·
1 Parent(s): 459dd2b

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -4
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,5):
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)
@@ -87,9 +87,8 @@ def read_root():
87
  },
88
  "status_counts_below_30": {
89
  "correct_values": str(status_counts_below_30[0]),
90
- "incorrect_values": str(status_counts_below_30[1])
91
  }
92
  }
93
  }
94
- json_data = json.dumps(kpi_result, indent=2)
95
- return json_data
 
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)
 
87
  },
88
  "status_counts_below_30": {
89
  "correct_values": str(status_counts_below_30[0]),
90
+ "incorrect_values": str(status_counts_below_30[0])
91
  }
92
  }
93
  }
94
+ return kpi_result