Skip to content

Commit

Permalink
Updating active key in source and destination creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Shwetabhk committed Nov 25, 2020
1 parent 79ee24c commit 61b5f1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions fyle_accounting_mappings/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def bulk_upsert_expense_attributes(attributes: List[Dict], workspace_id):
value=attribute['value'],
workspace_id=workspace_id,
defaults={
'active': attribute['active'] if 'active' in attribute else None,
'source_id': attribute['source_id'],
'display_name': attribute['display_name'],
}
Expand Down Expand Up @@ -99,6 +100,7 @@ def bulk_upsert_destination_attributes(attributes: List[Dict], workspace_id):
value=attribute['value'],
workspace_id=workspace_id,
defaults={
'active': attribute['active'] if 'active' in attribute else None,
'display_name': attribute['display_name'],
'destination_id': attribute['destination_id']
}
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='0.3.0',
version='0.4.0',
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 61b5f1f

Please sign in to comment.