Skip to content

Commit

Permalink
push final changes to prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitchell Laferla committed Jul 3, 2023
1 parent 4383b84 commit e83556b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 20 deletions.
9 changes: 0 additions & 9 deletions monitoring_weekly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")


3 changes: 1 addition & 2 deletions monitoring_weekly/weekly_autolinker_100_links_audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions monitoring_weekly/weekly_insights_brand_monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions monitoring_weekly/weekly_new_brand_combos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 2 additions & 3 deletions monitoring_weekly/weekly_new_store_monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
)
Expand Down Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions monitoring_weekly/weekly_sama_reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit e83556b

Please sign in to comment.