Skip to content

Commit e856033

Browse files
committed
remove whitespace
Signed-off-by: zhangtianli2006 <zhangtianli2006@163.com>
1 parent 9c44f42 commit e856033

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

problem/decorator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def enabled_required():
88
def decorator(func):
99
def _wrapped_view(request, pid, *args, **kwargs):
1010
problem = get_object_or_404(Problem, pid=pid)
11-
11+
1212
if not problem.enabled and not request.user.has_perm("problem.view_hidden"):
1313
return Response(
1414
{"detail": "Problem is hidden."}, status=status.HTTP_403_FORBIDDEN

problem/serializers.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ class ProblemSerializer(serializers.ModelSerializer):
1010
class Meta:
1111
model = Problem
1212
fields = [
13-
"pid",
14-
"date_added",
15-
"title",
16-
"description",
17-
"allow_html",
18-
"tags",
19-
"enabled",
20-
"memory_limit",
13+
"pid",
14+
"date_added",
15+
"title",
16+
"description"
17+
"allow_html",
18+
"tags",
19+
"enabled",
20+
"memory_limit",
2121
"time_limit",
2222
]
2323

@@ -32,8 +32,8 @@ class ProblemDescriptionSerializer(serializers.ModelSerializer):
3232
class Meta:
3333
model = Problem
3434
fields = [
35-
"pid",
36-
"description",
35+
"pid",
36+
"description",
3737
]
3838

3939
depth = 0

problem/views.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
TagSerializer,
1818
)
1919
from segmentoj.decorator import (
20-
syllable_required,
2120
parameter_required,
2221
)
2322
from status.models import Status

0 commit comments

Comments
 (0)