chore: use Class for parse_timerange

This commit is contained in:
Matthias 2024-10-24 06:05:52 +02:00
parent 661d36614f
commit 5b4043db85

View File

@ -583,7 +583,7 @@ def download_data_main(config: Config) -> None:
timerange = TimeRange.parse_timerange(f"{time_since}-") timerange = TimeRange.parse_timerange(f"{time_since}-")
if "timerange" in config: if "timerange" in config:
timerange = timerange.parse_timerange(config["timerange"]) timerange = TimeRange.parse_timerange(config["timerange"])
# Remove stake-currency to skip checks which are not relevant for datadownload # Remove stake-currency to skip checks which are not relevant for datadownload
config["stake_currency"] = "" config["stake_currency"] = ""