bugfix: 修改时区问题和定时任务

This commit is contained in:
chenwj113 2023-05-21 22:16:56 +08:00
parent fcca6fd8c1
commit e9e743675c
2 changed files with 3 additions and 1 deletions

View File

@ -17,6 +17,8 @@ RUN pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
# 应用启动
FROM python:3.8.6-slim
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo "Asia/Shanghai" > /etc/timezone
COPY --from=build /install /usr/local

View File

@ -34,7 +34,7 @@ def get_data_job(lottery_type='pls'):
print(f'issue:{draw_issue}已经存在')
@repeat(every().day.at("21:50"))
@repeat(every().day.at("22:20"))
def pls_job():
get_data_job(lottery_type='pls')