diff --git a/apps/fyle/views.py b/apps/fyle/views.py index 81b79180..60294406 100644 --- a/apps/fyle/views.py +++ b/apps/fyle/views.py @@ -473,8 +473,8 @@ def get_queryset(self): 'org_id': Workspace.objects.get(id=self.kwargs['workspace_id']).fyle_org_id } is_skipped = self.request.query_params.get('is_skipped') - if is_skipped: - filters['is_skipped'] = is_skipped + if is_skipped == 'true': + filters['is_skipped'] = True if start_date and end_date: filters['updated_at__range'] = [start_date, end_date] queryset = Expense.objects.filter(**filters).order_by('-updated_at')