fix task list bugs

Former-commit-id: c71b8802cd2d99a628175171ca2149e5a870c137
This commit is contained in:
tzwang 2024-05-14 08:46:47 +08:00
parent 520cfc00d9
commit dd1142245c
1 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,10 @@ func (l *PageListTaskLogic) updateAitaskStatus(tasks []*types.TaskModel, ch chan
return
}
if len(aiTask) == 0 {
continue
}
start, _ := time.ParseInLocation(constants.Layout, aiTask[0].StartTime, time.Local)
end, _ := time.ParseInLocation(constants.Layout, aiTask[0].EndTime, time.Local)