mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing analytics issue.
This commit is contained in:
parent
768af8bccf
commit
32c7c13a4f
1 changed files with 4 additions and 3 deletions
|
@ -440,6 +440,7 @@ def load_feeds_flat(request):
|
||||||
@json.json_view
|
@json.json_view
|
||||||
def refresh_feeds(request):
|
def refresh_feeds(request):
|
||||||
start = datetime.datetime.now()
|
start = datetime.datetime.now()
|
||||||
|
start_time = time.time()
|
||||||
user = get_user(request)
|
user = get_user(request)
|
||||||
feed_ids = request.REQUEST.getlist('feed_id') or request.REQUEST.getlist('feed_id[]')
|
feed_ids = request.REQUEST.getlist('feed_id') or request.REQUEST.getlist('feed_id[]')
|
||||||
check_fetch_status = request.REQUEST.get('check_fetch_status')
|
check_fetch_status = request.REQUEST.get('check_fetch_status')
|
||||||
|
@ -500,7 +501,7 @@ def refresh_feeds(request):
|
||||||
(end-start).total_seconds(),
|
(end-start).total_seconds(),
|
||||||
))
|
))
|
||||||
|
|
||||||
# MAnalyticsLoader.add(page_load=time.time()-start)
|
MAnalyticsLoader.add(page_load=time.time()-start_time)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'feeds': feeds,
|
'feeds': feeds,
|
||||||
|
@ -547,7 +548,7 @@ def feed_unread_count(request):
|
||||||
else:
|
else:
|
||||||
feed_title = "%s feeds" % (len(feeds) + len(social_feeds))
|
feed_title = "%s feeds" % (len(feeds) + len(social_feeds))
|
||||||
logging.user(request, "~FBUpdating unread count on: %s" % feed_title)
|
logging.user(request, "~FBUpdating unread count on: %s" % feed_title)
|
||||||
# MAnalyticsLoader.add(page_load=time.time()-start)
|
MAnalyticsLoader.add(page_load=time.time()-start)
|
||||||
|
|
||||||
return {'feeds': feeds, 'social_feeds': social_feeds}
|
return {'feeds': feeds, 'social_feeds': social_feeds}
|
||||||
|
|
||||||
|
@ -561,7 +562,7 @@ def refresh_feed(request, feed_id):
|
||||||
usersub.calculate_feed_scores(silent=False)
|
usersub.calculate_feed_scores(silent=False)
|
||||||
|
|
||||||
logging.user(request, "~FBRefreshing feed: %s" % feed)
|
logging.user(request, "~FBRefreshing feed: %s" % feed)
|
||||||
# MAnalyticsLoader.add(page_load=time.time()-start)
|
MAnalyticsLoader.add(page_load=time.time()-start)
|
||||||
|
|
||||||
return load_single_feed(request, feed_id)
|
return load_single_feed(request, feed_id)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue