Merge pull request #231 from BernieHuang2008/ass

[fix] Fix an assignment issue in web.py
This commit is contained in:
SiYuan 2023-12-27 00:01:28 +08:00 committed by GitHub
commit 6e262cd495
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ def christmas():
'正常作息': {'06:00', "07:00", "08:00", "09:00", "10:00", "11:00", "12:00", "13:00", "14:00", "15:00", "16:00",
"17:00", "18:00", "19:00", "20:00", "21:00"},
}
time_, num = msg_data[0] if msg_data else '', 0
time_, num = msg_data[0] if msg_data else ('', 0)
chat_time = f"凌晨{time_}" if time_ in {'00:00', '01:00', '02:00', '03:00', '04:00', '05:00'} else time_
label = '夜猫子'
for key, item in desc.items():