From 212cbd771b54c5d335397cb111cb914f1660f233 Mon Sep 17 00:00:00 2001 From: olli Date: Wed, 7 Feb 2024 09:16:46 +0100 Subject: [PATCH] fix: lower intervals in raw files 'already downloaded in the last X minutes' --- dabo/functions/get_asset.sh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/dabo/functions/get_asset.sh b/dabo/functions/get_asset.sh index af1f81b..7a71ccd 100644 --- a/dabo/functions/get_asset.sh +++ b/dabo/functions/get_asset.sh @@ -6,14 +6,6 @@ function get_asset { # write asset hist file local f_ASSET_HIST_FILE="asset-histories/${f_ASSET}.history-raw.csv" - if find "${f_ASSET_HIST_FILE}" -mmin -${INTERVAL_MIN} | grep -q "${f_ASSET_HIST_FILE}" - then - g_echo_note "${f_ASSET_HIST_FILE} already downloaded in the last ${INTERVAL_MIN} minutes" - return 0 - fi - - - [ -f "${f_ASSET_HIST_FILE}" ] || echo "Date and Time,Price" >"${f_ASSET_HIST_FILE}" if ! grep -q "^$(echo "${f_timestamp}" | cut -d: -f1,2)" "${f_ASSET_HIST_FILE}" then