修改定时任务

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)
def show():
x = randint(0, 5)
print(40/x)
def show(x=1):
return 40/x