From d4b6033aeac5c825b2491e4fa9c54246b38755db Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Sat, 2 Dec 2023 19:52:06 +0800 Subject: [PATCH] mqtt --- tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool.py b/tool.py index 4b21148..e7ffd07 100644 --- a/tool.py +++ b/tool.py @@ -45,7 +45,7 @@ def get_record(msg, client): int(date_str[8:10]), int(time_str[:2]), int(time_str[3:5])) # 比较文件时间和创建时间 - if file_time > create_time_: + if file_time == create_time_: file_name_ = filename if file_name_ == '': client.publish('error', payload='没有该文件', qos=0)