Skip to content

Commit

Permalink
do not inspect same color in problemset api
Browse files Browse the repository at this point in the history
  • Loading branch information
jimin9038 committed Apr 12, 2022
1 parent 376eaa2 commit b3c2164
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions backend/problem/views/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,8 +772,6 @@ def post(self, request):
data = request.data
if ProblemSet.objects.filter(title=data["title"]).exists():
return self.error("Problem set title already exists.")
if ProblemSet.objects.filter(color=data["color"]).exists():
return self.error("Problem set color already exists.")

problem_set_group_id = data.pop("problem_set_group_id")
try:
Expand Down

0 comments on commit b3c2164

Please sign in to comment.