Fix an assignment issue in web.py

This commit is contained in:
berniehuang2008 2023-12-26 12:50:33 +08:00
parent c722c3c16c
commit 36e995ac80

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():