已修复:已修复以下错误,原因是两个 time 库名称冲突。
Fixed: The following error has been fixed due to a conflict between two time libraries.
Job "check_showroom_status (trigger: cron[second='0'], next run at: 2024-08-25 11:56:00 CST)" raised an exception
Traceback (most recent call last):
File "/home/lin/Downloads/venv/lib/python3.12/site-packages/apscheduler/executors/base_py3.py", line 30, in run_coroutine_job
retval = await job.func(*job.args, **job.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lin/Downloads/idol_bot/main.py", line 146, in check_showroom_status
if time.time() - showroom_end_time_list[i] > 5 * 60:
^^^^^^^^^
AttributeError: type object 'datetime.time' has no attribute 'time'