fix
This commit is contained in:
parent
d5ed758605
commit
06534555d5
@ -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}"')
|
||||
|
Loading…
Reference in New Issue
Block a user