Skip to content

Commit

Permalink
openapi中泄露了spj的代码信息
Browse files Browse the repository at this point in the history
  • Loading branch information
virusdefender committed May 30, 2016
1 parent 634b572 commit b528f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion problem/serizalizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class OpenAPIProblemSerializer(BaseProblemSerializer):

class Meta:
model = Problem
exclude = ["visible", "test_case_id"]
exclude = ["visible", "test_case_id", "spj_language", "spj_code", "spj_version"]


class EditProblemSerializer(serializers.Serializer):
Expand Down

0 comments on commit b528f5b

Please sign in to comment.