Skip to content

Commit

Permalink
add else condition
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions committed Sep 30, 2024
1 parent 4f5fcd1 commit b2b33e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fyle_accounting_mappings/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,8 @@ def get_queryset(self):
param = Q(categorymapping__source_category_id__in=source_categories)
elif mapped is False:
param = ~Q(categorymapping__source_category_id__in=source_categories)
else:
return ExpenseAttribute.objects.filter(base_filters).order_by('value')

# Combine the base filters with the param (if any)
final_filter = base_filters
Expand Down

0 comments on commit b2b33e5

Please sign in to comment.