Skip to content

Commit

Permalink
reesolve lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashutosh619-sudo committed Dec 27, 2024
1 parent c14edf9 commit b4317d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fyle_accounting_mappings/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,9 @@ def bulk_create_or_update_destination_attributes(
else:
condition = (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']
or ('code' in attribute and attribute['code']
and attribute['code'] != primary_key_map[attribute['destination_id']]['code'])

if attribute_disable_callback_path and is_import_to_fyle_enabled and condition:
attributes_to_disable[attribute['destination_id']] = {
'value': primary_key_map[attribute['destination_id']]['value'],
Expand All @@ -438,11 +438,11 @@ def bulk_create_or_update_destination_attributes(
}

condition = (attribute['value'] != primary_key_map[attribute['destination_id']]['value']) \
or ('detail' in attribute and
or ('detail' in attribute and
attribute['detail'] != primary_key_map[attribute['destination_id']]['detail']) \
or ('active' in attribute and
or ('active' in attribute and
attribute['active'] != primary_key_map[attribute['destination_id']]['active']) \
or ('code' in attribute and
or ('code' in attribute and
attribute['code'] and attribute['code'] != primary_key_map[attribute['destination_id']]['code']) \

if update and condition:
Expand Down

0 comments on commit b4317d5

Please sign in to comment.