give load_cached_data_for_updating the right flags to avoid redownloading data in dry/live
This commit is contained in:
parent
65fdebab75
commit
891fb87712
@ -669,7 +669,7 @@ class FreqaiDataKitchen:
|
||||
def check_if_new_training_required(self, trained_timestamp: int) -> Tuple[bool, TimeRange]:
|
||||
|
||||
time = datetime.datetime.now(tz=datetime.timezone.utc).timestamp()
|
||||
trained_timerange = TimeRange()
|
||||
trained_timerange = TimeRange('date', 'date')
|
||||
if trained_timestamp != 0:
|
||||
elapsed_time = (time - trained_timestamp) / SECONDS_IN_DAY
|
||||
retrain = elapsed_time > self.freqai_config.get('backtest_period')
|
||||
|
Loading…
Reference in New Issue
Block a user