mirror of
https://github.com/viq/NewsBlur.git
synced 2025-04-13 09:38:09 +00:00
16 lines
487 B
Python
16 lines
487 B
Python
![]() |
from django.views import View
|
||
|
from django.http import JsonResponse
|
||
|
from apps.analyzer.models import MClassifierFeed, MClassifierAuthor, MClassifierTag, MClassifierTitle
|
||
|
|
||
|
|
||
|
class Classifiers(View):
|
||
|
|
||
|
def get(self, request):
|
||
|
return JsonResponse({
|
||
|
'feeds': MClassifierFeed.objects.count(),
|
||
|
'authors': MClassifierAuthor.objects.count(),
|
||
|
'tags': MClassifierTag.objects.count(),
|
||
|
'titles': MClassifierTitle.objects.count(),
|
||
|
})
|
||
|
|