Skip to content

Commit

Permalink
Fix active filter (#103)
Browse files Browse the repository at this point in the history
* Fix active filter

* fix lint
  • Loading branch information
ashwin1111 authored Mar 20, 2024
1 parent b1f61cd commit 30f63c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions fyle_accounting_mappings/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,7 @@ def get_queryset(self):
'attribute_type': source_type,
}

if ((source_type == 'PROJECT' and destination_type == 'CUSTOMER') or\
(source_type == 'CATEGORY')):
if source_type in ('PROJECT', 'CATEGORY'):
filters['active'] = True

param = None
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name='fyle-accounting-mappings',
version='1.31.3',
version='1.31.4',
author='Shwetabh Kumar',
author_email='[email protected]',
description='Django application to store the fyle accounting mappings in a generic manner',
Expand Down

0 comments on commit 30f63c1

Please sign in to comment.