From b08576c9729d6d0fa988bd6e34d934f77d70a0e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Fri, 16 May 2025 10:08:30 +0200 Subject: [PATCH] radio-news: expire earlier --- 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 2b58b32..3f80386 100644 --- a/systems/makanek/radio-news.nix +++ b/systems/makanek/radio-news.nix @@ -65,7 +65,7 @@ in { RESPONSE=$(echo "$REQUEST" | curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-8b:generateContent?key=$GEMINI_API_KEY" -s -H "Content-Type: application/json" -d @-) - echo "$RESPONSE" | jq --arg from "$(date -u -Is | sed 's/+00:00/Z/')" --arg to "$(date -u -Is -d 'next hour' | sed 's/+00:00/Z/')" ' + echo "$RESPONSE" | jq --arg from "$(date -u -Is | sed 's/+00:00/Z/')" --arg to "$(date -u -Is -d 'now + 30 minutes' | sed 's/+00:00/Z/')" ' { from: $from, to: $to,