bugfix: 修改时区问题和定时任务
This commit is contained in:
parent
fcca6fd8c1
commit
e9e743675c
|
|
@ -17,6 +17,8 @@ RUN pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
|
||||||
# 应用启动
|
# 应用启动
|
||||||
FROM python:3.8.6-slim
|
FROM python:3.8.6-slim
|
||||||
|
|
||||||
|
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||||
|
|
||||||
RUN echo "Asia/Shanghai" > /etc/timezone
|
RUN echo "Asia/Shanghai" > /etc/timezone
|
||||||
|
|
||||||
COPY --from=build /install /usr/local
|
COPY --from=build /install /usr/local
|
||||||
|
|
|
||||||
2
main.py
2
main.py
|
|
@ -34,7 +34,7 @@ def get_data_job(lottery_type='pls'):
|
||||||
print(f'issue:{draw_issue}已经存在')
|
print(f'issue:{draw_issue}已经存在')
|
||||||
|
|
||||||
|
|
||||||
@repeat(every().day.at("21:50"))
|
@repeat(every().day.at("22:20"))
|
||||||
def pls_job():
|
def pls_job():
|
||||||
get_data_job(lottery_type='pls')
|
get_data_job(lottery_type='pls')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue