mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Showing correctly real-time status if feed is push.
This commit is contained in:
parent
a075ec9e33
commit
201fc63b57
1 changed files with 3 additions and 3 deletions
|
@ -84,14 +84,14 @@ def load_feed_statistics(request, feed_id):
|
|||
# Dates of last and next update
|
||||
stats['last_update'] = relative_timesince(feed.last_update)
|
||||
if feed.is_push:
|
||||
stats['next_update'] = "In real-time..."
|
||||
stats['next_update'] = "real-time..."
|
||||
else:
|
||||
stats['next_update'] = relative_timeuntil(feed.next_scheduled_update)
|
||||
|
||||
# Minutes between updates
|
||||
update_interval_minutes, _ = feed.get_next_scheduled_update(force=True)
|
||||
if feed.is_push:
|
||||
stats['update_interval_minutes'] = "Constantly"
|
||||
stats['update_interval_minutes'] = 0
|
||||
else:
|
||||
stats['update_interval_minutes'] = update_interval_minutes
|
||||
original_active_premium_subscribers = feed.active_premium_subscribers
|
||||
|
@ -102,7 +102,7 @@ def load_feed_statistics(request, feed_id):
|
|||
feed.active_premium_subscribers = original_active_premium_subscribers
|
||||
feed.premium_subscribers = original_premium_subscribers
|
||||
if feed.is_push:
|
||||
stats['premium_update_interval_minutes'] = "Constantly"
|
||||
stats['premium_update_interval_minutes'] = 0
|
||||
else:
|
||||
stats['premium_update_interval_minutes'] = premium_update_interval_minutes
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue