Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
magnified103 committed Oct 10, 2024
1 parent 3fffb32 commit 6c0fe79
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions judge/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from judge.models.contest import Contest, ContestAnnouncement, ContestMoss, ContestParticipation, ContestProblem, \
ContestSubmission, ContestTag, Rating
from judge.models.interface import BlogPost, BlogVote, MiscConfig, NavigationBar, validate_regex
from judge.models.problem import LanguageLimit, License, Problem, ProblemClarification, ProblemGroup, \
ProblemExportKey, ProblemTranslation, ProblemType, Solution, SubmissionSourceAccess, TranslatedProblemQuerySet
from judge.models.problem import LanguageLimit, License, Problem, ProblemClarification, ProblemExportKey, \
ProblemGroup, ProblemTranslation, ProblemType, Solution, SubmissionSourceAccess, TranslatedProblemQuerySet
from judge.models.problem_data import CHECKERS, ProblemData, ProblemTestCase, problem_data_storage, \
problem_directory_file
from judge.models.profile import Badge, Organization, OrganizationMonthlyUsage, OrganizationRequest, \
Expand Down
2 changes: 1 addition & 1 deletion judge/template_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ def math_setting(request):


def site_setting(request):
return {'VNOJ_PROBLEM_ENABLE_IMPORT': settings.VNOJ_PROBLEM_ENABLE_IMPORT}
return {'VNOJ_PROBLEM_ENABLE_IMPORT': settings.VNOJ_PROBLEM_ENABLE_IMPORT}
8 changes: 4 additions & 4 deletions judge/views/problem_transfer.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import base64
import hmac
import requests
import struct

import requests
from django.conf import settings
from django.contrib.auth.models import AnonymousUser
from django.core.exceptions import PermissionDenied, ValidationError
from django.core.validators import RegexValidator
from django.db.models import Q
from django.forms import Form, CharField, PasswordInput, URLField
from django.http import Http404, JsonResponse, HttpResponseRedirect
from django.forms import CharField, Form
from django.http import Http404, HttpResponseRedirect, JsonResponse
from django.urls import reverse
from django.utils import timezone
from django.utils.decorators import method_decorator
Expand All @@ -22,7 +22,7 @@
from requests.exceptions import HTTPError
from reversion import revisions

from judge.models import Problem, ProblemExportKey, ProblemGroup, ProblemType, Language
from judge.models import Language, Problem, ProblemExportKey, ProblemGroup, ProblemType
from judge.utils.views import TitleMixin
from judge.widgets import HeavySelect2Widget

Expand Down

0 comments on commit 6c0fe79

Please sign in to comment.