From 9728ada0b3aeb19a482d1dce404f6dbfa2720aeb Mon Sep 17 00:00:00 2001 From: "David P. Chassin" Date: Sat, 12 Aug 2023 09:37:00 -0700 Subject: [PATCH] Update isone.py --- tools/isone.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/isone.py b/tools/isone.py index 55c6d4b04..94333a4fc 100644 --- a/tools/isone.py +++ b/tools/isone.py @@ -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)