Skip to content

Commit

Permalink
Fix downloading data for tomorrow
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrMachowski committed Jan 5, 2025
1 parent cd288c5 commit 113a30a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/tge/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class TgeConnector:
@staticmethod
def get_data() -> TgeData:
data_for_today = TgeConnector.get_data_for_date(datetime.date.today())
data_for_tomorrow = TgeConnector.get_data_for_date(datetime.date.today() - datetime.timedelta(days=1))
data_for_tomorrow = TgeConnector.get_data_for_date(datetime.date.today() + datetime.timedelta(days=1))
data = [d for d in [data_for_today, data_for_tomorrow] if d is not None]
return TgeData(data)

Expand Down

0 comments on commit 113a30a

Please # to comment.