mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
Updating feeds that are added but have not been updated in over a day.
This commit is contained in:
parent
e68aba2546
commit
2c8b8d848f
1 changed files with 3 additions and 0 deletions
|
@ -486,6 +486,9 @@ def add_url(request):
|
|||
user_sub_folders = _add_object_to_folder(feed.pk, folder, user_sub_folders)
|
||||
user_sub_folders_object.folders = json.encode(user_sub_folders)
|
||||
user_sub_folders_object.save()
|
||||
|
||||
if feed.last_update < datetime.datetime.utcnow() - datetime.timedelta(days=1):
|
||||
feed.update()
|
||||
|
||||
return dict(code=code, message=message)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue