diff --git a/monitoring_weekly/__init__.py b/monitoring_weekly/__init__.py index 9e4c58a..3b7359b 100644 --- a/monitoring_weekly/__init__.py +++ b/monitoring_weekly/__init__.py @@ -48,14 +48,5 @@ def batch_execution(file_list): batch_execution(files) - # try: - # run_script('weekly_sama_reporting.py') - # run_script('weekly_autolinker_100_links_audit.py') - # run_script('weekly_insights_brand_monitoring.py') - # run_script('weekly_new_brand_combos.py') - # run_script('weekly_new_store_monitoring.py') - - # except: - # print("There was a problem running a script") diff --git a/monitoring_weekly/weekly_autolinker_100_links_audit.py b/monitoring_weekly/weekly_autolinker_100_links_audit.py index 0225714..e9f9965 100644 --- a/monitoring_weekly/weekly_autolinker_100_links_audit.py +++ b/monitoring_weekly/weekly_autolinker_100_links_audit.py @@ -91,8 +91,7 @@ def main(mytimer: func.TimerRequest) -> None: """ try: sp.transmissions.send( - #recipients=['mfelipe@headset.io', 'rmontenigro@headset.io'], - recipients=['mlaferla@headset.io'], + recipients=['mfelipe@headset.io', 'rmontenigro@headset.io'], html=msgHtml, from_email='analytics-monitor@headset.io', subject="Autolinker 100 link audit", diff --git a/monitoring_weekly/weekly_insights_brand_monitoring.py b/monitoring_weekly/weekly_insights_brand_monitoring.py index 72ad842..b9b61b9 100644 --- a/monitoring_weekly/weekly_insights_brand_monitoring.py +++ b/monitoring_weekly/weekly_insights_brand_monitoring.py @@ -205,8 +205,7 @@ def main(mytimer: func.TimerRequest) -> None: """ try: sp.transmissions.send( - #recipients=['mlaferla@headset.io', 'plong@headset.io', 'cooper@headset.io'], - recipients=['mlaferla@headset.io'], + recipients=['mlaferla@headset.io', 'plong@headset.io', 'cooper@headset.io'], html=msgHtml, from_email='analytics-monitor@headset.io', subject="Insights Brand Monitoring", diff --git a/monitoring_weekly/weekly_new_brand_combos.py b/monitoring_weekly/weekly_new_brand_combos.py index cd86a0e..63155b6 100644 --- a/monitoring_weekly/weekly_new_brand_combos.py +++ b/monitoring_weekly/weekly_new_brand_combos.py @@ -142,8 +142,7 @@ def main(mytimer: func.TimerRequest) -> None: """ try: sp.transmissions.send( - #recipients=['mfelipe@headset.io', 'rmontenigro@headset.io'], - recipients=['mlaferla@headset.io'], + recipients=['mfelipe@headset.io', 'rmontenigro@headset.io'], html=msgHtml, from_email='analytics-monitor@headset.io', subject="New Brand Combos", diff --git a/monitoring_weekly/weekly_new_store_monitoring.py b/monitoring_weekly/weekly_new_store_monitoring.py index cfab164..7a252ed 100644 --- a/monitoring_weekly/weekly_new_store_monitoring.py +++ b/monitoring_weekly/weekly_new_store_monitoring.py @@ -31,7 +31,7 @@ def main(mytimer: func.TimerRequest) -> None: engine = create_engine( 'snowflake://{user}:{password}@{account}/'.format( - user=os.environ["SNOWFLAKE"], + user=os.environ["SNOWFLAKE_USER"], password=os.environ["SNOWFLAKE_PASSWORD"], account=os.environ["SNOWFLAKE_ACCOUNT"], ) @@ -138,8 +138,7 @@ def main(mytimer: func.TimerRequest) -> None: """ try: sp.transmissions.send( - #recipients=['mlaferla@headset.io', 'plong@headset.io', 'cooper@headset.io'], - recipients=['mlaferla@headset.io'], + recipients=['mlaferla@headset.io', 'plong@headset.io', 'cooper@headset.io'], html=msgHtml, from_email='analytics-monitor@headset.io', subject="New Store Monitoring", diff --git a/monitoring_weekly/weekly_sama_reporting.py b/monitoring_weekly/weekly_sama_reporting.py index 54b9b68..ec2380f 100644 --- a/monitoring_weekly/weekly_sama_reporting.py +++ b/monitoring_weekly/weekly_sama_reporting.py @@ -137,8 +137,7 @@ def main(mytimer: func.TimerRequest) -> None: try: response = sp.transmissions.send( - #recipients=['mlaferla@headset.io', 'cooper@headset.io', 'rmontenigro@headset.io', 'mfelipe@headset.io','jeniffer.aloo@nbo.samadc.org','nancy.mwangi@nbo.samadc.org','saveria.achieng@samasource.org','benjamin.ndungu@nbo.samadc.org','holuga@samasource.org'], - recipients=['mlaferla@headset.io'], + recipients=['mlaferla@headset.io', 'cooper@headset.io', 'rmontenigro@headset.io', 'mfelipe@headset.io','jeniffer.aloo@nbo.samadc.org','nancy.mwangi@nbo.samadc.org','saveria.achieng@samasource.org','benjamin.ndungu@nbo.samadc.org','holuga@samasource.org'], html='Please find the Headset team\'s unlinks and flagged products attached. Reach out to cooper@headset.io with issues or questions.', from_email='analytics-monitor@headset.io', subject='Headset Weekly Flag and Unlink Export',