Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansurf committed May 24, 2024
1 parent dff448f commit 5c538d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/send_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
message["To"] = RECEIVER_EMAIL
message["Subject"] = os.getenv("SUBJECT")


def send_user_email():
# Execute the command to get output
SURF = subprocess.run(
Expand All @@ -48,4 +49,5 @@ def send_user_email():
server.sendmail(SENDER_EMAIL, RECEIVER_EMAIL, text)
print("Email sent successfully.")

send_user_email()

send_user_email()
1 change: 1 addition & 0 deletions src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
load_dotenv()
port_env = int(os.getenv("PORT"))


class MyHTTPRequestHandler(http.server.BaseHTTPRequestHandler):
"""
Handles HTTP requests
Expand Down

0 comments on commit 5c538d6

Please sign in to comment.