NewsBlur/apps/monitor/views/newsblur_errors.py
2021-03-26 13:28:03 -05:00

14 lines
308 B
Python
Executable file

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'],
})