From acd2cc1c75638865e64858b9b41653a6a5889575 Mon Sep 17 00:00:00 2001 From: Dan White Date: Thu, 5 Jan 2023 11:29:44 -0600 Subject: [PATCH] No need to keep display the git diff --- do-updates.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/do-updates.sh b/do-updates.sh index 7220295..79d4f87 100755 --- a/do-updates.sh +++ b/do-updates.sh @@ -15,6 +15,7 @@ echo "*** Fetching database items" echo "*** Fetching stations info" ../python-files/get-stations.py stations.json +# and update the stations SQLite database for analysis ../python-files/update-stations stations.json stations.db echo @@ -22,12 +23,12 @@ echo "*** Getting observations" #../python-files/get-observations.py --fetch observations.db #../python-files/get-observations.py --fetch --retry-unknown observations.db -# lag by 24h to let some updates settle down -date_end="$(date -u --date='24 hours ago' '+%Y-%m-%dT%H:%M')" +# lag by 48h to let some updates settle down +date_end="$(date -u --date='48 hours ago' '+%Y-%m-%dT%H:%M')" ../python-files/get-observations.py --fetch --pages 100 --end="$date_end" observations.db # what changed? -git diff +#git diff git add db-*.json stations.json git commit -m 'cron update info' -- 2.25.1