New version of black, new whitespace
This commit is contained in:
@ -7,7 +7,7 @@ from bookwyrm import activitystreams
|
||||
|
||||
@login_required
|
||||
def get_notification_count(request):
|
||||
""" any notifications waiting? """
|
||||
"""any notifications waiting?"""
|
||||
return JsonResponse(
|
||||
{
|
||||
"count": request.user.notification_set.filter(read=False).count(),
|
||||
@ -17,7 +17,7 @@ def get_notification_count(request):
|
||||
|
||||
@login_required
|
||||
def get_unread_status_count(request, stream="home"):
|
||||
""" any unread statuses for this feed? """
|
||||
"""any unread statuses for this feed?"""
|
||||
stream = activitystreams.streams.get(stream)
|
||||
if not stream:
|
||||
return JsonResponse({})
|
||||
|
Reference in New Issue
Block a user