Remove useless "set title"

This commit is contained in:
int-y1 2022-04-18 04:24:37 -04:00 committed by Guanzhong Chen
parent 8b295918ef
commit 9ba005b31d
7 changed files with 3 additions and 8 deletions

View File

@ -49,7 +49,7 @@ class Submission(models.Model):
USER_DISPLAY_CODES = {
'AC': _('Accepted'),
'WA': _('Wrong Answer'),
'SC': 'Short Circuited',
'SC': _('Short Circuited'),
'TLE': _('Time Limit Exceeded'),
'MLE': _('Memory Limit Exceeded'),
'OLE': _('Output Limit Exceeded'),

View File

@ -25,7 +25,7 @@ def language_data(request, language_count=Language.objects.annotate(count=Count(
other_count = sum(map(itemgetter('count'), languages[num_languages:]))
return JsonResponse({
'labels': list(map(itemgetter('name'), languages[:num_languages])) + ['Other'],
'labels': list(map(itemgetter('name'), languages[:num_languages])) + [_('Other')],
'datasets': [
{
'backgroundColor': chart_colors[:num_languages] + ['#FDB45C'],

View File

@ -50,7 +50,6 @@
{% block title_row %}
{% set tab = 'list' %}
{% set title = 'Contests' %}
{% include "contest/contest-list-tabs.html" %}
{% endblock %}

View File

@ -12,7 +12,6 @@
{% block title_row %}
{% set tab = 'organizations' %}
{% set title = _('Organizations') %}
{% include "user/user-list-tabs.html" %}
{% endblock %}

View File

@ -163,7 +163,6 @@
{% block title_row %}
{% set tab = 'list' %}
{% set title = 'Problems' %}
{% include "problem/problem-list-tabs.html" %}
{% endblock %}

View File

@ -10,7 +10,6 @@
{% block title_row %}
{% set tab = 'language' %}
{% set title = 'Statistics' %}
{% include "stats/tabs.html" %}
{% endblock %}

View File

@ -17,10 +17,9 @@
{% block title_row %}
{% set tab = 'list' %}
{% set title = 'Leaderboard' %}
{% include "user/user-list-tabs.html" %}
{% endblock %}
{% block users_table %}
{% include "user/users-table.html" %}
{% endblock %}
{% endblock %}