NewsBlur/apps/monitor/views/newsblur_errors.py

15 lines
308 B
Python
Raw Normal View History

from django.http import JsonResponse
from django.views import View
from apps.statistics.models import MStatistics
class Errors(View):
def get(self, request):
statistics = MStatistics.all()
return JsonResponse({
'feed_success': statistics['feeds_fetched'],
})