From a13e7bd5b228d1876c04d1ff629daa6d2872b054 Mon Sep 17 00:00:00 2001 From: Jake Adams Date: Wed, 15 Jan 2025 13:50:51 -0700 Subject: [PATCH] chore: PR comments --- setup.py | 4 ++-- src/supervisor/example.py | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/setup.py b/setup.py index b577414..8e9843a 100644 --- a/setup.py +++ b/setup.py @@ -38,8 +38,8 @@ }, keywords=["gis"], install_requires=[ - "requests~=2.31", - "sendgrid~=6.11", + "requests==2.31", + "sendgrid==6.*", ], extras_require={ "tests": [ diff --git a/src/supervisor/example.py b/src/supervisor/example.py index 9c3e1ee..98c8074 100644 --- a/src/supervisor/example.py +++ b/src/supervisor/example.py @@ -36,10 +36,10 @@ #: Specify the email server and addresses email_settings = { - "smtpServer": "send.state.ut.us", + "smtpServer": "outgoing.smtp.server", "smtpPort": 25, - "from_address": "noreply@utah.gov", - "to_addresses": "jdadams@utah.gov", + "from_address": "noreply@example.com", + "to_addresses": "recipient@example.com", "prefix": f"Example on {socket.gethostname()}: ", } @@ -52,14 +52,14 @@ #: Specify the to/from addresses, subject prefix, and sendgrid API key sendgrid_settings = { - "from_address": "noreply@utah.gov", - "to_addresses": "jdadams@utah.gov", + "from_address": "noreply@example.com", + "to_addresses": "recipient@example.com", "prefix": f"Example on {socket.gethostname()}: ", "api_key": secrets.SENDGRID_API_KEY, } #: Instantiate a new SendGridHandler and register it with our Supervisor - sim_sup.add_message_handler(SendGridHandler(sendgrid_settings, "agrc-supervisor")) + sim_sup.add_message_handler(SendGridHandler(sendgrid_settings, "ugrc-supervisor")) #: Send a message with both a directory attachment and a single file attachment message = MessageDetails()