Skip to content

Commit

Permalink
fixing lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashutosh619-sudo committed Dec 24, 2024
1 parent 642da02 commit b7a49f9
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions fyle_accounting_mappings/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,14 +424,15 @@ def bulk_create_or_update_destination_attributes(
)
else:
if attribute_disable_callback_path and is_import_to_fyle_enabled and (
(attribute['value'] and primary_key_map[attribute['destination_id']]['value'] and attribute['value'].lower(
) != primary_key_map[attribute['destination_id']]['value'].lower())
or ('code' in attribute and attribute['code'] and attribute['code'] != primary_key_map[attribute['destination_id']]['code'])
(attribute['value'] and primary_key_map[attribute['destination_id']]['value'] and
attribute['value'].lower() != primary_key_map[attribute['destination_id']]['value'].lower()) or
('code' in attribute and attribute['code'] and
attribute['code'] != primary_key_map[attribute['destination_id']]['code'])
):
attributes_to_disable[attribute['destination_id']] = {
'value': primary_key_map[attribute['destination_id']]['value'],
'value': primary_key_map['destination_id']['value'],
'updated_value': attribute['value'],
'code': primary_key_map[attribute['destination_id']]['code'],
'code': primary_key_map['destination_id']['code'],
'updated_code': attribute['code']
}

Expand All @@ -456,7 +457,10 @@ def bulk_create_or_update_destination_attributes(

if attribute_disable_callback_path and attributes_to_disable:
import_string(attribute_disable_callback_path)(
workspace_id, attributes_to_disable, is_import_to_fyle_enabled)
workspace_id,
attributes_to_disable,
is_import_to_fyle_enabled
)

if attributes_to_be_created:
DestinationAttribute.objects.bulk_create(
Expand Down

0 comments on commit b7a49f9

Please sign in to comment.