Skip to content

Commit

Permalink
fix lastest() to check further in the past
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Dec 6, 2024
1 parent bef2552 commit 181303b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ecmwf/opendata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@

from .client import Client

__version__ = "0.3.10"
__version__ = "0.3.11"

__all__ = ["Client"]
2 changes: 1 addition & 1 deletion ecmwf/opendata/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def latest(self, request=None, **kwargs):

date = full_date(0, params.get("time", 18))

stop = date - datetime.timedelta(days=1, hours=6)
stop = date - datetime.timedelta(days=2)

while date > stop:
result = self._get_urls(
Expand Down

0 comments on commit 181303b

Please sign in to comment.