mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Correcting bug where next_update would be set in the future too quickly.
This commit is contained in:
parent
1454ba1063
commit
cb59861098
1 changed files with 4 additions and 4 deletions
|
@ -57,7 +57,9 @@ class FetchFeed:
|
|||
logging.debug(log_msg)
|
||||
feed.save_feed_history(303, "Already fetched")
|
||||
return FEED_SAME, None
|
||||
|
||||
else:
|
||||
feed.set_next_scheduled_update()
|
||||
|
||||
etag=self.feed.etag
|
||||
modified = self.feed.last_modified.utctimetuple()[:7] if self.feed.last_modified else None
|
||||
|
||||
|
@ -263,9 +265,7 @@ class Dispatcher:
|
|||
ENTRY_ERR: 0
|
||||
}
|
||||
start_time = datetime.datetime.now()
|
||||
|
||||
feed.set_next_scheduled_update()
|
||||
|
||||
|
||||
### Uncomment to test feed fetcher
|
||||
# from random import randint
|
||||
# if randint(0,10) < 10:
|
||||
|
|
Loading…
Add table
Reference in a new issue