mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
12 lines
384 B
Python
Executable file
12 lines
384 B
Python
Executable file
from django.http import JsonResponse
|
|
from django.views import View
|
|
from apps.rss_feeds.models import MStory, MStarredStory
|
|
from apps.rss_feeds.models import MStory, MStarredStory
|
|
|
|
class Stories(View):
|
|
|
|
def get(self, request):
|
|
return JsonResponse({
|
|
'stories': MStory.objects.count(),
|
|
'starred_stories': MStarredStory.objects.count(),
|
|
})
|