File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -67,9 +67,9 @@ def run_module():
67
67
params = read_params ()
68
68
export_start_date = params ["export_start_date" ]
69
69
if export_start_date == "latest" :
70
- export_start_date = date .today () - timedelta (days = 1 )
70
+ export_start_date = datetime . combine ( date .today (), time ( 0 , 0 ) ) - timedelta (days = 1 )
71
71
else :
72
- export_start_date = date .strptime (export_start_date , "%Y-%m-%d" )
72
+ export_start_date = datetime .strptime (export_start_date , "%Y-%m-%d" )
73
73
export_dir = params ["export_dir" ]
74
74
base_url = params ["base_url" ]
75
75
static_file_dir = params ["static_file_dir" ]
@@ -102,9 +102,7 @@ def run_module():
102
102
create_export_csv (
103
103
df ,
104
104
export_dir = export_dir ,
105
- start_date = datetime .combine (
106
- SMOOTHERS_MAP [smoother ][3 ](export_start_date ),
107
- time (0 ,0 )),
105
+ start_date = SMOOTHERS_MAP [smoother ][3 ](export_start_date ),
108
106
metric = metric ,
109
107
geo_res = geo_res ,
110
108
sensor = sensor_name ,
You can’t perform that action at this time.
0 commit comments