NewsBlur/apps/monitor/views/newsblur_errors.py
2021-04-27 07:56:02 -05:00

14 lines
367 B
Python
Executable file

from django.shortcuts import render
from django.views import View
from apps.statistics.models import MStatistics
class Errors(View):
def get(self, request):
statistics = MStatistics.all()
data = {
'feed_success': statistics['feeds_fetched'],
}
return render(request, 'monitor/prometheus_data.html', {"data": data})