mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
feat: optimized spider, task pages
This commit is contained in:
@@ -53,6 +53,11 @@ func GetTaskById(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
// schedule
|
||||
if !t.ScheduleId.IsZero() {
|
||||
t.Schedule, _ = service.NewModelServiceV2[models.ScheduleV2]().GetById(t.ScheduleId)
|
||||
}
|
||||
|
||||
// task stat
|
||||
t.Stat, _ = service.NewModelServiceV2[models.TaskStatV2]().GetById(id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user