From 21905fd1db60c3e4a6503f5ee2acd09ef1218477 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Fri, 29 Sep 2023 00:37:28 -0500 Subject: [PATCH] Fix local var error --- judge/views/comment.py | 1 + 1 file changed, 1 insertion(+) diff --git a/judge/views/comment.py b/judge/views/comment.py index 58ba3fc..6965201 100644 --- a/judge/views/comment.py +++ b/judge/views/comment.py @@ -150,6 +150,7 @@ def get_comments(request, limit=10): revisions=Count("versions", distinct=True), )[offset : offset + limit] ) + profile = None if request.user.is_authenticated: profile = request.profile queryset = queryset.annotate(