diff --git a/modules/templates/helper.go b/modules/templates/helper.go index b0e174214..115246eab 100755 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -471,7 +471,7 @@ func Str2html(raw string) template.HTML { func subOne(length int) int { return length - 1 } -func addOne(i) int64 { +func addOne(i interface{}) int64 { if i>=0 { return i + 1 } diff --git a/templates/custom/task_wait_count.tmpl b/templates/custom/task_wait_count.tmpl index 9dd95d2e5..73ecac3ac 100644 --- a/templates/custom/task_wait_count.tmpl +++ b/templates/custom/task_wait_count.tmpl @@ -1,7 +1,7 @@