dump update

This commit is contained in:
Tuan-Dung Bui 2023-04-15 18:35:02 +07:00
parent 7680ba4bb0
commit c3b7d465b1
784 changed files with 35 additions and 18 deletions

0
judge/views/__init__.py Normal file → Executable file
View file

0
judge/views/about.py Normal file → Executable file
View file

0
judge/views/api/__init__.py Normal file → Executable file
View file

0
judge/views/api/api_v1.py Normal file → Executable file
View file

0
judge/views/api/api_v2.py Normal file → Executable file
View file

0
judge/views/blog.py Normal file → Executable file
View file

0
judge/views/bookmark.py Normal file → Executable file
View file

7
judge/views/comment.py Normal file → Executable file
View file

@ -137,11 +137,10 @@ def get_comment(request, limit=10):
queryset = page_obj.comments
replies = len(queryset.filter(parent=comment_obj))
queryset = (
queryset.filter(parent=comment_obj, hidden=False)[offset:offset+limit]
queryset.filter(parent=comment_obj, hidden=False)
.select_related("author__user")
.defer("author__about")
.annotate(revisions=Count("versions"))
.annotate(count_replies=Count("replies"))
.defer("author__about")[offset:offset+limit]
# .annotate(revisions=Count("versions"), count_replies=Count("replies"))
)
if request.user.is_authenticated:
profile = request.profile

0
judge/views/contests.py Normal file → Executable file
View file

0
judge/views/course.py Normal file → Executable file
View file

0
judge/views/error.py Normal file → Executable file
View file

0
judge/views/feed.py Normal file → Executable file
View file

0
judge/views/internal.py Normal file → Executable file
View file

0
judge/views/language.py Normal file → Executable file
View file

0
judge/views/license.py Normal file → Executable file
View file

0
judge/views/mailgun.py Normal file → Executable file
View file

0
judge/views/notification.py Normal file → Executable file
View file

0
judge/views/organization.py Normal file → Executable file
View file

0
judge/views/pagevote.py Normal file → Executable file
View file

0
judge/views/preview.py Normal file → Executable file
View file

0
judge/views/problem.py Normal file → Executable file
View file

0
judge/views/problem_data.py Normal file → Executable file
View file

0
judge/views/problem_manage.py Normal file → Executable file
View file

0
judge/views/ranked_submission.py Normal file → Executable file
View file

0
judge/views/register.py Normal file → Executable file
View file

0
judge/views/resolver.py Normal file → Executable file
View file

0
judge/views/select2.py Normal file → Executable file
View file

0
judge/views/stats.py Normal file → Executable file
View file

0
judge/views/status.py Normal file → Executable file
View file

0
judge/views/submission.py Normal file → Executable file
View file

0
judge/views/tasks.py Normal file → Executable file
View file

0
judge/views/ticket.py Normal file → Executable file
View file

0
judge/views/totp.py Normal file → Executable file
View file

0
judge/views/user.py Normal file → Executable file
View file

0
judge/views/volunteer.py Normal file → Executable file
View file

0
judge/views/widgets.py Normal file → Executable file
View file