Spaces:
Sleeping
Sleeping
random pick an incomplete task instead of go with sequential order
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ class AppSimulator:
|
|
72 |
system_data = json_repair.loads(row['value'])
|
73 |
|
74 |
self.app_name = app_name
|
75 |
-
smallest_index =
|
76 |
if smallest_index is None:
|
77 |
return "All tasks in this app have been completed!"
|
78 |
self.smallest_index = smallest_index
|
|
|
72 |
system_data = json_repair.loads(row['value'])
|
73 |
|
74 |
self.app_name = app_name
|
75 |
+
smallest_index = find_random_incomplete_task(app_name)
|
76 |
if smallest_index is None:
|
77 |
return "All tasks in this app have been completed!"
|
78 |
self.smallest_index = smallest_index
|