New version of black, new whitespace

This commit is contained in:
Mouse Reeve
2021-04-26 09:15:42 -07:00
parent ef83eb33b0
commit 3ade2d3bb1
152 changed files with 1289 additions and 1289 deletions

View File

@ -9,10 +9,10 @@ from django.views import View
# pylint: disable= no-self-use
@method_decorator(login_required, name="dispatch")
class Notifications(View):
""" notifications view """
"""notifications view"""
def get(self, request):
""" people are interacting with you, get hyped """
"""people are interacting with you, get hyped"""
notifications = request.user.notification_set.all().order_by("-created_date")
unread = [n.id for n in notifications.filter(read=False)]
data = {
@ -23,6 +23,6 @@ class Notifications(View):
return TemplateResponse(request, "notifications.html", data)
def post(self, request):
""" permanently delete notification for user """
"""permanently delete notification for user"""
request.user.notification_set.filter(read=True).delete()
return redirect("/notifications")