This commit is contained in:
Simon Ding
2024-07-13 19:40:56 +08:00
parent 50a237df25
commit 1fc3d3a1fe
2 changed files with 5 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ func (s *Server) GetAllActivities(c *gin.Context) (interface{}, error) {
History: h,
}
for id, task := range s.tasks {
if h.ID == id {
if h.ID == id && task.Exists() {
a.Progress = task.Progress()
}
if h.ID == id && task.Processing {