Skip to content

Commit

Permalink
Fix : 유저 포인트 반환 기록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
joy-river committed Jan 13, 2025
1 parent 574d996 commit 9bf18b1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions KUA/student/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,12 +535,11 @@ def get(self, request):
user = request.user

try:
history = models.PointHistory.objects.filter(user=user.id)
history = models.PointHistory.objects.filter(user=user)
return Response(history, status = 200)

except:
history = []
return Response(history, status=400)
return Response([], status=400)


class ImageView(APIView):
Expand Down

0 comments on commit 9bf18b1

Please sign in to comment.