From 36ce5143b4e1873a56734312d7ddf1a14e5a7512 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Tue, 13 Dec 2022 14:26:37 +0100 Subject: [PATCH] fix(radio-news): only give one hour of stockholm history --- systems/makanek/radio-news.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systems/makanek/radio-news.nix b/systems/makanek/radio-news.nix index 4264e1f..4f41fd6 100644 --- a/systems/makanek/radio-news.nix +++ b/systems/makanek/radio-news.nix @@ -25,7 +25,7 @@ in { rm -rf "$stockholm" } ${pkgs.git}/bin/git clone ${remote} "$stockholm" - ${pkgs.git}/bin/git --git-dir "$stockholm"/.git log --pretty='"%s" by %an, %ar.' --since "$(${pkgs.coreutils}/bin/date -I -d "yesterday")" \ + ${pkgs.git}/bin/git --git-dir "$stockholm"/.git log --pretty='"%s" by %an, %ar.' --since "$(${pkgs.coreutils}/bin/date -d '1 hours ago')" \ | ${pkgs.jq}/bin/jq -R '{text: ., from: now | todateiso8601, to: (now + (60 * 60)) | todateiso8601}' \ | ${pkgs.curl}/bin/curl -Ssfd @- http://radio-news.r/ '';