mirror of
https://github.com/viq/NewsBlur.git
synced 2025-11-01 09:09:16 +00:00
Using minutes instead of hours for status page to handle large status pages.
This commit is contained in:
parent
c172fd5f3e
commit
0304b4d49b
1 changed files with 2 additions and 2 deletions
|
|
@ -186,9 +186,9 @@ def status(request):
|
|||
logging.user(request.user, "~SKNON-STAFF VIEWING RSS FEEDS STATUS!")
|
||||
assert False
|
||||
return HttpResponseForbidden()
|
||||
|
||||
minutes = request.GET.get('minutes', 10)
|
||||
now = datetime.datetime.now()
|
||||
hour_ago = now - datetime.timedelta(hours=1)
|
||||
hour_ago = now - datetime.timedelta(minutes=minutes)
|
||||
feeds = Feed.objects.filter(last_update__gte=hour_ago).order_by('-last_update')
|
||||
return render_to_response('rss_feeds/status.xhtml', {
|
||||
'feeds': feeds
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue