File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
google_symptoms/delphi_google_symptoms Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -67,17 +67,24 @@ def patch(params):
6767 patch_dates = generate_patch_dates (params )
6868
6969 while issue_date <= end_issue :
70- daterange = patch_dates [issue_date ]
7170 logger .info (f"""Running issue { issue_date .strftime ("%Y-%m-%d" )} """ )
71+
72+ # Output dir setup
7273 current_issue_yyyymmdd = issue_date .strftime ("%Y%m%d" )
7374 current_issue_dir = f"""{ params ["patch" ]["patch_dir" ]} /issue_{ current_issue_yyyymmdd } /google-symptom"""
7475 makedirs (f"{ current_issue_dir } " , exist_ok = True )
76+
7577 params ["common" ]["export_dir" ] = f"""{ current_issue_dir } """
78+ params ["indicator" ]["custom_run" ] = True
79+
80+ date_settings = patch_dates [issue_date ]
81+
82+ params ["indicator" ]["export_start_date" ] = date_settings ["export_start_date" ].strftime ("%Y-%m-%d" )
83+ params ["indicator" ]["export_end_date" ] = date_settings ["export_end_date" ].strftime ("%Y-%m-%d" )
84+ params ["indicator" ]["num_export_days" ] = date_settings ["num_export_days" ]
7685
77- params ["indicator" ]["export_start_date" ] = daterange [0 ].strftime ("%Y-%m-%d" )
78- params ["indicator" ]["export_end_date" ] = daterange [1 ].strftime ("%Y-%m-%d" )
79- params ["patch" ]["patch_flag" ] = True
8086 run_module (params , logger )
87+
8188 issue_date += timedelta (days = 1 )
8289
8390
You can’t perform that action at this time.
0 commit comments