Merge pull request #3379 from hroff-1902/fix-3378

Fix #3378
This commit is contained in:
Matthias 2020-05-26 17:16:11 +02:00 committed by GitHub
commit e370d635bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -327,6 +327,8 @@ class IStrategy(ABC):
latest_date = dataframe['date'].max() latest_date = dataframe['date'].max()
latest = dataframe.loc[dataframe['date'] == latest_date].iloc[-1] latest = dataframe.loc[dataframe['date'] == latest_date].iloc[-1]
# Explicitly convert to arrow object to ensure the below comparison does not fail
latest_date = arrow.get(latest_date)
# Check if dataframe is out of date # Check if dataframe is out of date
interval_minutes = timeframe_to_minutes(interval) interval_minutes = timeframe_to_minutes(interval)