Skip to content

Commit

Permalink
change in views for ExpenseView (#393)
Browse files Browse the repository at this point in the history
* change in views for ExpenseView
  • Loading branch information
anishfyle authored Mar 2, 2023
1 parent fc86b54 commit d2c0fd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/fyle/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit d2c0fd7

Please sign in to comment.