modified top-list api, junior-list api and junior-points api, nodified rank method, added mail for deactivating user from admin

This commit is contained in:
abutalib-kiwi
2023-08-24 19:34:59 +05:30
parent 1a2fd2d3a8
commit 2e0ceb8c92
11 changed files with 94 additions and 71 deletions

View File

@ -28,9 +28,13 @@ app.config_from_object('django.conf:settings')
app.autodiscover_tasks()
app.conf.beat_schedule = {
"expired_task": {
"task": "guardian.utils.update_expired_task_status",
"schedule": crontab(minute=0, hour=0),
},
'notify_task_expiry': {
'task': 'base.tasks.notify_task_expiry',
'schedule': crontab(minute='0', hour='*/1'),
'schedule': crontab(minute='30', hour='19'),
},
}
@ -39,14 +43,3 @@ app.conf.beat_schedule = {
def debug_task(self):
""" celery debug task """
print(f'Request: {self.request!r}')
"""cron task"""
app.conf.beat_schedule = {
"expired_task": {
"task": "guardian.utils.update_expired_task_status",
"schedule": crontab(minute=0, hour=0),
},
}