Skip to content

Commit

Permalink
Update DataMart_hourly_download.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KYSIEMENS authored Feb 3, 2025
1 parent 6b38d86 commit 88cdb04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/python/DataMart_hourly_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ def write_data(self,date,objpath,src_varname,out_varname):
ostore = NRObjStoreUtil.ObjectStoreUtil()

# default is to use today's date
days_back = int(os.getenv('DEFAULT_DAYS_FROM_PRESENT', 0))
#days_back = int(os.getenv('DEFAULT_DAYS_FROM_PRESENT', 0))
days_back = 1
#Github actions runs in UTC, convert to PST for script to work in github:
current_date = datetime.datetime.now() - datetime.timedelta(hours=8) - datetime.timedelta(days=days_back)
#current_date = datetime.datetime.now() - datetime.timedelta(days=days_back)
Expand Down

0 comments on commit 88cdb04

Please sign in to comment.