This commit is contained in:
xyj 2023-12-02 19:52:06 +08:00
parent 35508548ee
commit d4b6033aea
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ def get_record(msg, client):
int(date_str[8:10]), int(time_str[:2]), int(date_str[8:10]), int(time_str[:2]),
int(time_str[3:5])) int(time_str[3:5]))
# 比较文件时间和创建时间 # 比较文件时间和创建时间
if file_time > create_time_: if file_time == create_time_:
file_name_ = filename file_name_ = filename
if file_name_ == '': if file_name_ == '':
client.publish('error', payload='没有该文件', qos=0) client.publish('error', payload='没有该文件', qos=0)