Skip to content

Commit

Permalink
chore: convert string to boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
elitonzky committed Nov 13, 2024
1 parent e55e6ce commit 1219f91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions retail/api/features/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def get(self, request, project_uuid: str):
features = features.filter(category=category)

if can_vtex_integrate:
# Convert "true"/"false" to boolean
can_vtex_integrate = can_vtex_integrate == 'true'
features = features.filter(can_vtex_integrate=can_vtex_integrate)

serializer = FeaturesSerializer(features, many=True)
Expand Down

0 comments on commit 1219f91

Please sign in to comment.