From 69b37cdd2788764c8629dcc4b5fcb80bb3740c65 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Sat, 26 Jan 2019 12:38:13 +0300 Subject: [PATCH] fix --- feeds/tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/feeds/tasks.py b/feeds/tasks.py index 58cdf8a..68fb8b9 100644 --- a/feeds/tasks.py +++ b/feeds/tasks.py @@ -4,11 +4,12 @@ from telebot import TeleBot from djconfig import config from config.celery import app -from feeds.models import Feed @app.task(base=QueueOnce) def check_feeds(): + from feeds.models import Feed + feeds = Feed.objects.filter(lock=False) for feed in feeds: feed.run_check()