Coverage for bookie.views.stats : 57%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
"""Basic views with no home"""
route_name="dashboard", renderer="/stats/dashboard.mako") def dashboard(request): """A public dashboard of the system """ res = tasks.count_total.delay()
# Generate some user data and stats user_count = UserMgr.count() pending_activations = ActivationMgr.count()
# Generate some bookmark data. bookmark_count = BmarkMgr.count() unique_url_count = BmarkMgr.count(distinct=True)
return { 'bookmark_data': { 'count': bookmark_count, 'unique_count': unique_url_count }, 'user_data': { 'count': user_count, 'activations': pending_activations
} } |