Skip to content

Commit

Permalink
Get data from one month ahead
Browse files Browse the repository at this point in the history
  • Loading branch information
b-j-mills committed Dec 9, 2024
1 parent 28da861 commit cc470dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hdx/scraper/hno/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import logging
from os.path import expanduser, join

from dateutil.relativedelta import relativedelta

from hdx.api.configuration import Configuration
from hdx.data.user import User
from hdx.facades.infer_arguments import facade
Expand Down Expand Up @@ -60,7 +62,7 @@ def main(
batch = info["batch"]
configuration = Configuration.read()
today = now_utc()
year = today.year
year = (today + relativedelta(months=1)).year
saved_dir = "saved_data"
with Download(
extra_params_yaml=join(expanduser("~"), ".extraparams.yaml"),
Expand Down

0 comments on commit cc470dd

Please sign in to comment.