From 413c84fa70c1d4438e878d883d0ff095cc9617b4 Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Tue, 27 Dec 2022 15:20:58 +0000 Subject: [PATCH] added warning on edit page for disabled cron filters --- scraping.go | 3 +++ todo.md | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scraping.go b/scraping.go index e5aa1cc..4576e37 100644 --- a/scraping.go +++ b/scraping.go @@ -72,6 +72,9 @@ func processFilters(filters []Filter, web *Web, watch *Watch, debug bool, schedu continue } if debug && filter.Type == "cron" { + if filter.Var2 != nil && *filter.Var2 == "no" { + filter.log("Schedule is disabled") + } processedMap[filter.ID] = true getCronDebugResult(filter) continue diff --git a/todo.md b/todo.md index 7d6c600..ef470bc 100644 --- a/todo.md +++ b/todo.md @@ -14,5 +14,4 @@ - walmart - etsy - aliexpress.com -- warning for disabled cron ? - clear cache button on edit page \ No newline at end of file