Spaces:
Runtime error
Runtime error
ICAS03 commited on
Commit ·
56cc93b
1
Parent(s): 4573d9f
- fix recalculate mandays
Browse files- Project.py +10 -6
Project.py
CHANGED
|
@@ -623,7 +623,7 @@ class Project:
|
|
| 623 |
"result": processed_result
|
| 624 |
}
|
| 625 |
results.append(formatted_result)
|
| 626 |
-
|
| 627 |
yield f"Successfully completed {function_name}", results , None
|
| 628 |
|
| 629 |
except Exception as e:
|
|
@@ -1008,11 +1008,15 @@ class Project:
|
|
| 1008 |
if hasattr(self, 'generated_plan_test_mandays') and self.generated_plan_test_mandays:
|
| 1009 |
try:
|
| 1010 |
plan_test_data = self.generated_plan_test_mandays
|
| 1011 |
-
if isinstance(plan_test_data, dict)
|
| 1012 |
-
|
| 1013 |
-
|
| 1014 |
-
'
|
| 1015 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1016 |
except Exception as e:
|
| 1017 |
print(f"Error processing plan test mandays: {str(e)}")
|
| 1018 |
|
|
|
|
| 623 |
"result": processed_result
|
| 624 |
}
|
| 625 |
results.append(formatted_result)
|
| 626 |
+
|
| 627 |
yield f"Successfully completed {function_name}", results , None
|
| 628 |
|
| 629 |
except Exception as e:
|
|
|
|
| 1008 |
if hasattr(self, 'generated_plan_test_mandays') and self.generated_plan_test_mandays:
|
| 1009 |
try:
|
| 1010 |
plan_test_data = self.generated_plan_test_mandays
|
| 1011 |
+
if isinstance(plan_test_data, dict):
|
| 1012 |
+
# Get the configuration type functions from the plan test data
|
| 1013 |
+
for function_name in plan_test_data.keys():
|
| 1014 |
+
if function_name.startswith('generate_') and function_name.endswith('_plan_test_mandays'):
|
| 1015 |
+
original_results.append({
|
| 1016 |
+
'function_name': function_name,
|
| 1017 |
+
'result': plan_test_data
|
| 1018 |
+
})
|
| 1019 |
+
break
|
| 1020 |
except Exception as e:
|
| 1021 |
print(f"Error processing plan test mandays: {str(e)}")
|
| 1022 |
|