mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
13 lines
379 B
Python
13 lines
379 B
Python
![]() |
from django.http import JsonResponse
|
||
|
from django.views import View
|
||
|
|
||
|
class LoadTimes(View):
|
||
|
|
||
|
def get(self, request):
|
||
|
from apps.statistics.models import MStatistics
|
||
|
|
||
|
return JsonResponse({
|
||
|
'feed_loadtimes_avg_hour': MStatistics.get('latest_avg_time_taken'),
|
||
|
'feeds_loaded_hour': MStatistics.get('latest_sites_loaded'),
|
||
|
})
|