diff --git a/apps/system/tasks.py b/apps/system/tasks.py index 69bd0984..17b1f2c0 100755 --- a/apps/system/tasks.py +++ b/apps/system/tasks.py @@ -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