修改定时任务

This commit is contained in:
曹前明 2022-07-16 15:02:02 +08:00
parent edaf09994f
commit 95bc677472
1 changed files with 2 additions and 3 deletions

View File

@ -7,6 +7,5 @@ from django.core.mail import send_mail
@shared_task(base=CustomTask) @shared_task(base=CustomTask)
def show(): def show(x=1):
x = randint(0, 5) return 40/x
print(40/x)