From 9de3440ede2448e82b848af88e5816c7cccd1d3b Mon Sep 17 00:00:00 2001 From: Sny Date: Mon, 29 Apr 2024 09:16:14 +0530 Subject: [PATCH] OpenConceptLab/ocl_issues#1777 | fixing pylint --- core/common/tasks.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/common/tasks.py b/core/common/tasks.py index 478cbf76..1a70336d 100644 --- a/core/common/tasks.py +++ b/core/common/tasks.py @@ -760,5 +760,4 @@ def resolve_url_registry_entries(repo_id, repo_type): @app.task(ignore_result=True) def expire_old_celery_tasks(): - from core.tasks.models import Task - Task.objects.filter(updated_at__lt=timezone.now() - timezone.timedelta(days=7)).delete() \ No newline at end of file + Task.objects.filter(updated_at__lt=timezone.now() - timezone.timedelta(days=7)).delete()