From bfbf6deb943b9c311c21acd5961574b76b10022c Mon Sep 17 00:00:00 2001 From: The-Dark-Mode <167715404+The-Dark-Mode@users.noreply.github.com> Date: Sat, 7 Dec 2024 13:43:19 +1300 Subject: [PATCH] Update log.py --- log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log.py b/log.py index f4047c3..a843808 100644 --- a/log.py +++ b/log.py @@ -45,14 +45,14 @@ event_cache = {} # Function to send email with attachment and clip link def send_email(message, snapshot_urls, event_label, clip_url): try: - subject = f"Object Detected: {event_label}" + subject = f"(Test) {event_label} detected!" msg = MIMEMultipart() msg['Subject'] = subject msg['From'] = EMAIL_FROM msg['To'] = ", ".join(EMAIL_TO) # Add the email body - body = f"{message}\n\n(Test) An object was detected at the Gate!\n\nClip link: {clip_url}" + body = f"{message}\n\nClip: {clip_url}" msg.attach(MIMEText(body)) # Attach snapshots to the email