From 66edab897f160bdee9db356d8e2f0612d9fff7e0 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Fri, 10 Oct 2025 14:43:16 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(config):=20add=20eol=20query?= =?UTF-8?q?=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - add `eol_query` function to `EolRule` struct - function returns a string with the current date formatted as "YYYY-MM-DD" --- src/config/eol_rule.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/config/eol_rule.rs b/src/config/eol_rule.rs index 8ba8786..72ea1d5 100644 --- a/src/config/eol_rule.rs +++ b/src/config/eol_rule.rs @@ -132,6 +132,10 @@ impl EolRule { self.id, ) } + + pub(crate) fn eol_query(&self) -> String { + format!("before: {}", chrono::Local::now().format("%Y-%m-%d")) + } } #[cfg(test)]