Skip to content

Commit

Permalink
fixed linting issues #3
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenspark committed Jan 19, 2024
1 parent 3150cf7 commit 9d8db12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/user/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def get(self, request):
bidders = Bidder.objects.all()
unverifiedBidders = []
for index in range(len(bidders)):
if bidders[index].is_verified == False:
if bidders[index].is_verified is False:
unverifiedBidders.append(bidders[index])
serializer = UnverifiedBidderSerializer(unverifiedBidders, many=True)
return Response(serializer.data, status=status.HTTP_200_OK)
Expand All @@ -174,7 +174,7 @@ def get(self, request):
bidders = Bidder.objects.all()
blacklistedBidders = []
for index in range(len(bidders)):
if bidders[index].is_blacklisted == True:
if bidders[index].is_blacklisted is True:
blacklistedBidders.append(bidders[index])
serializer = BlacklistedBidderSerializer(blacklistedBidders, many=True)
return Response(serializer.data, status=status.HTTP_200_OK)
Expand All @@ -186,7 +186,7 @@ def get(self, request):
bidders = Bidder.objects.all()
verifiedBidders = []
for index in range(len(bidders)):
if bidders[index].is_verified == True:
if bidders[index].is_verified is True:
verifiedBidders.append(bidders[index])
serializer = VerifiedBidderSerializer(verifiedBidders, many=True)
return Response(serializer.data, status=status.HTTP_200_OK)

0 comments on commit 9d8db12

Please sign in to comment.