From 86815fb46033bedccb06e9d768aa026e8fe39eae Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Sun, 14 Apr 2024 00:23:14 -0500 Subject: [PATCH] Add lazy loading img and fix friend ranking --- judge/views/contests.py | 2 +- templates/blog/content.html | 2 +- templates/chat/message.html | 2 +- templates/chat/online_status.html | 4 ++-- templates/course/list.html | 2 +- templates/submission/row.html | 2 +- templates/ticket/message.html | 2 +- templates/ticket/ticket.html | 2 +- templates/user/link.html | 2 +- templates/user/users-table.html | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/judge/views/contests.py b/judge/views/contests.py index 51e9297..0e71646 100644 --- a/judge/views/contests.py +++ b/judge/views/contests.py @@ -1018,7 +1018,7 @@ def base_contest_ranking_list(contest, problems, queryset, show_final=False): def contest_ranking_list(contest, problems, queryset=None, show_final=False): - if not queryset: + if queryset is None: queryset = contest.users.filter(virtual=0) if not show_final: diff --git a/templates/blog/content.html b/templates/blog/content.html index ac89ca4..8171d28 100644 --- a/templates/blog/content.html +++ b/templates/blog/content.html @@ -5,7 +5,7 @@ {% with authors=post.get_authors() %} {%- if authors -%} - + {{ link_users(authors) }} {%- endif -%} diff --git a/templates/chat/message.html b/templates/chat/message.html index 7068af1..a253fab 100644 --- a/templates/chat/message.html +++ b/templates/chat/message.html @@ -1,6 +1,6 @@
  • - +
    diff --git a/templates/chat/online_status.html b/templates/chat/online_status.html index 754137c..d17b6ff 100644 --- a/templates/chat/online_status.html +++ b/templates/chat/online_status.html @@ -1,6 +1,6 @@
  • - +
    {{_('Lobby')}} @@ -23,7 +23,7 @@ {% for user in section.user_list %}
  • - + diff --git a/templates/course/list.html b/templates/course/list.html index 2d43db2..90b86b9 100644 --- a/templates/course/list.html +++ b/templates/course/list.html @@ -14,7 +14,7 @@ {% for course in courses %}
    - +
    {{course.name}} diff --git a/templates/submission/row.html b/templates/submission/row.html index 2adf4fc..94ccd6a 100644 --- a/templates/submission/row.html +++ b/templates/submission/row.html @@ -1,6 +1,6 @@ {% set can_view = submission.is_accessible_by(profile) %}
    - +
    diff --git a/templates/ticket/message.html b/templates/ticket/message.html index f6084ae..cf3a0cf 100644 --- a/templates/ticket/message.html +++ b/templates/ticket/message.html @@ -4,7 +4,7 @@
    diff --git a/templates/ticket/ticket.html b/templates/ticket/ticket.html index e1462ce..2693455 100644 --- a/templates/ticket/ticket.html +++ b/templates/ticket/ticket.html @@ -162,7 +162,7 @@
    diff --git a/templates/user/link.html b/templates/user/link.html index 49d158f..473dc6f 100644 --- a/templates/user/link.html +++ b/templates/user/link.html @@ -1,7 +1,7 @@ {% if show_image %} - + {% endif %} diff --git a/templates/user/users-table.html b/templates/user/users-table.html index dfdcbe2..4424007 100644 --- a/templates/user/users-table.html +++ b/templates/user/users-table.html @@ -5,7 +5,7 @@ {% endblock %} {% block after_rank %} - + {% endblock %} {% block user_footer %}