From 4086db8b6c86bfeea19b36df3c65ff15187dff77 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Mon, 29 Aug 2022 17:30:40 +0800 Subject: [PATCH 1/2] fix issue --- templates/custom/wait_count.tmpl | 1 + templates/custom/wait_count_train.tmpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/custom/wait_count.tmpl b/templates/custom/wait_count.tmpl index 072d1d40db..fde6fa82f0 100644 --- a/templates/custom/wait_count.tmpl +++ b/templates/custom/wait_count.tmpl @@ -2,6 +2,7 @@ {{$queue := ""}} {{$gpuQueue := 0}} {{range $k,$v :=.gpu_types}} + {{ $v }} {{if eq $k 0}} {{ $queue = $v.Queue }} {{ end }} diff --git a/templates/custom/wait_count_train.tmpl b/templates/custom/wait_count_train.tmpl index 4b7e2dac35..9249b5676d 100644 --- a/templates/custom/wait_count_train.tmpl +++ b/templates/custom/wait_count_train.tmpl @@ -18,7 +18,7 @@ > {{.ctx.i18n.Tr "repo.wait_count_start"}} - {{if .type}} + {{if .ctx.QueuesDetail}} {{ $gpuQueue }} {{else}} {{.ctx.WaitCount}} -- 2.34.1 From b21ab772cb57945efaa81c229296fa0a9ba27c26 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Mon, 29 Aug 2022 17:31:31 +0800 Subject: [PATCH 2/2] fix issue --- templates/custom/wait_count.tmpl | 1 - 1 file changed, 1 deletion(-) diff --git a/templates/custom/wait_count.tmpl b/templates/custom/wait_count.tmpl index fde6fa82f0..072d1d40db 100644 --- a/templates/custom/wait_count.tmpl +++ b/templates/custom/wait_count.tmpl @@ -2,7 +2,6 @@ {{$queue := ""}} {{$gpuQueue := 0}} {{range $k,$v :=.gpu_types}} - {{ $v }} {{if eq $k 0}} {{ $queue = $v.Queue }} {{ end }} -- 2.34.1