From 06534555d561f0dbfa81bf6f00c6e6b005b5c665 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Thu, 14 Mar 2019 09:58:33 +0300 Subject: [PATCH] fix --- feeds/tasks.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/feeds/tasks.py b/feeds/tasks.py index 671dc28..65b49de 100644 --- a/feeds/tasks.py +++ b/feeds/tasks.py @@ -30,11 +30,11 @@ def execute_feed(feed_pk): try: feed = Feed.objects.get(pk=feed_pk) - if not feed.lock: - feed.lock = True - feed.save() - else: - raise Reject('Lock', requeue=False) + # if not feed.lock: + # feed.lock = True + # feed.save() + # else: + # raise Reject('Lock', requeue=False) bot = TeleBot(config.feed_bot_token, threaded=False) print(f'Last ID for "{feed}" = "{feed.last_id}"')