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
|
@ -487,6 +487,9 @@ def add_url(request):
|
||||||
user_sub_folders_object.folders = json.encode(user_sub_folders)
|
user_sub_folders_object.folders = json.encode(user_sub_folders)
|
||||||
user_sub_folders_object.save()
|
user_sub_folders_object.save()
|
||||||
|
|
||||||
|
if feed.last_update < datetime.datetime.utcnow() - datetime.timedelta(days=1):
|
||||||
|
feed.update()
|
||||||
|
|
||||||
return dict(code=code, message=message)
|
return dict(code=code, message=message)
|
||||||
|
|
||||||
@ajax_login_required
|
@ajax_login_required
|
||||||
|
|
Loading…
Add table
Reference in a new issue