From a003fb2b297640adb029ecef62ea3ee0ddbdacad Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sat, 5 Aug 2023 19:22:40 +0100 Subject: [PATCH 1/2] feat: run updater every 15 min --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 966f01b..182e6dd 100644 --- a/flake.nix +++ b/flake.nix @@ -222,8 +222,8 @@ wantedBy = [ "timers.target" ]; partOf = [ "${cfg.user}_new_users.service" ]; timerConfig = { - # every hour - OnCalendar = "*-*-* *:15:00"; + # every 15 min + OnCalendar = "*-*-* *:0/15:00"; Unit = "${cfg.user}_update.service"; }; }; From 6efdb9cd1c2d683753ef48549beec06d2f86aa08 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sat, 5 Aug 2023 19:23:47 +0100 Subject: [PATCH 2/2] Fix: update email to explain more about Skynet/Compsoc Closes #9 --- src/bin/new_users.rs | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/src/bin/new_users.rs b/src/bin/new_users.rs index 97fff36..6b89501 100644 --- a/src/bin/new_users.rs +++ b/src/bin/new_users.rs @@ -96,6 +96,18 @@ fn send_mail(config: &Config, record: &Record, auth: &str) -> Result Result Result Result