fix: 无法继续专精

This commit is contained in:
uye
2025-07-05 21:05:16 +08:00
parent 1d073214e9
commit f68503f426

View File

@@ -137,8 +137,7 @@ bool asst::InfrastTrainingTask::level_analyze(const cv::Mat& image)
bool asst::InfrastTrainingTask::training_completed()
{
ProcessTask task(*this, { "InfrastTrainingProcessing", "InfrastTrainingCompleted" });
return task.run() && task.get_last_task_name() == "InfrastTrainingCompleted";
return ProcessTask(*this, { "InfrastTrainingCompleted" }).run();
}
std::optional<std::string> asst::InfrastTrainingTask::time_left_analyze(const cv::Mat& image)