Skip to content

Commit

Permalink
Fix: status 코드 반환 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
joy-river committed Jan 13, 2025
1 parent 0c85bd3 commit 574d996
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions KUA/student/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,12 +420,12 @@ def get(self, request):
try:
student = user.student
except models.Student.DoesNotExist:
return Response("Student not found", status=400)
return Response("Student not found", status=404)

if timezone.now() - student.permission_date > timedelta(days=int(student.permission_type)):
return Response("You Need to Buy")
return Response("You Need to Buy", status=400)
else:
return Response("Success")
return Response("Success", status=201)

#id로 닉네임 조회하는 기능

Expand Down

0 comments on commit 574d996

Please sign in to comment.