更新 Healthbeat.py

master
lz8878 2023-09-08 08:06:40 +08:00
parent 39c73fa3f2
commit 1b36e1f528
1 changed files with 6 additions and 6 deletions

View File

@ -27,7 +27,7 @@ class Camera:
else: else:
logging.warning("摄像头ID: %s, 状态: 离线" % (self.id)) logging.warning("摄像头ID: %s, 状态: 离线" % (self.id))
if (status == 1 and self.status == 2) or (status == 2 and self.status == 1): #if (status == 1 and self.status == 2) or (status == 2 and self.status == 1):
conn = get_connection() conn = get_connection()
with conn: with conn: