From c3b6952017b2a8b01e1285468fbbcaa1c10e961b Mon Sep 17 00:00:00 2001 From: jeanGaston Date: Sat, 4 May 2024 17:42:02 +0200 Subject: [PATCH] updates --- Program/mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Program/mail.py b/Program/mail.py index cf3c028..391df54 100644 --- a/Program/mail.py +++ b/Program/mail.py @@ -75,7 +75,7 @@ def check_and_send_email(): # Retrieve the threshold settings from Alert_settings table c.execute("SELECT MAX_HR, MAX_TEMP FROM alert_settings") threshold = c.fetchone() - print(threshold) + if last_record: # Extract HR and Temp values from the last record