add date filtering
authorDan White <dan@whiteaudio.com>
Thu, 27 Oct 2022 21:09:56 +0000 (16:09 -0500)
committerDan White <dan@whiteaudio.com>
Thu, 27 Oct 2022 21:09:56 +0000 (16:09 -0500)
do-updates.sh

index 4e51431d05a31a5fca74732ae9d4eb521445686e..d3b05ad8a239c932e8de04693554cfbe3e3faf45 100755 (executable)
@@ -17,6 +17,12 @@ echo
 echo "*** Getting observations"
 #../python-files/get-observations.py --fetch observations.db
 #../python-files/get-observations.py --fetch --retry-unknown observations.db
-../python-files/get-observations.py --fetch --pages 100 observations.db
+
+# lag by 24h to let some updates settle down
+date_end="$(date -u --date='24 hours ago' '+%Y-%m-%dT%H:%M')"
+../python-files/get-observations.py --fetch --pages 100 --end="$date_end" observations.db
+
+# what changed?
+git diff
 
 exit