Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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,
|
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[
|
91 |
}
|
92 |
}
|
93 |
}
|
94 |
-
|
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
|
|