Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Update isone.py
Browse files Browse the repository at this point in the history
Signed-off-by: David P. Chassin <[email protected]>
  • Loading branch information
dchassin committed Aug 12, 2023
1 parent 5045e38 commit 45037a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/isone.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ def get_data(startdate=None,stopdate=None,dataset=None):
:return: pandas.DataFrame - the requested data
"""
if startdate == None:
startdate = datetime.datetime(year=datetime.datetime.now().year)
startdate = datetime.datetime(year=datetime.datetime.now().year,month=1,day=1)
else:
startdate = datetime.datetime.strptime(startdate,DATEFORMAT)
if startdate == None:
if stopdate == None:
stopdate = datetime.datetime.now()
else:
stopdate = datetime.datetime.strptime(stopdate,DATEFORMAT)
Expand Down

0 comments on commit 45037a3

Please sign in to comment.