From 280f0c59fce28300da1ec65db55b4c9deb3d8243 Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Tue, 18 Oct 2022 20:34:35 +0000 Subject: [PATCH] fixed bug --- templates/index.html | 9 +++++++-- todo.md | 3 +-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/templates/index.html b/templates/index.html index 530c8d7..ff5f1f9 100644 --- a/templates/index.html +++ b/templates/index.html @@ -13,8 +13,13 @@ {{ range . }} {{ .Name }} - {{ .CronEntry.Prev.Format "2006-01-02 15:04:05" }} - {{ .CronEntry.Next.Format "2006-01-02 15:04:05" }} + {{ if .CronEntry }} + {{ .CronEntry.Prev.Format "2006-01-02 15:04:05" }} + {{ .CronEntry.Next.Format "2006-01-02 15:04:05" }} + + {{ else }} + No schedule (Add cron filter) + {{ end }} Edit diff --git a/todo.md b/todo.md index e018fea..f9d1b07 100644 --- a/todo.md +++ b/todo.md @@ -3,5 +3,4 @@ - condition filters have var1 pointing to other filter? - header/post body for get url ? - add toast when editing to replace notify ? -- unescape notify string -- fix bug when no cron job for watch \ No newline at end of file +- unescape notify string \ No newline at end of file