Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrishabh17 committed Sep 17, 2024
1 parent 4ca097f commit 510429d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions apps/mappings/imports/modules/categories.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def disable_categories(workspace_id: int, categories_to_disable: Dict, is_import
'value': 'old_category_name',
'updated_value': 'new_category_name',
'code': 'old_code',
'update_code': 'new_code' ---- if the code is updated else same as code
'updated_code': 'new_code' ---- if the code is updated else same as code
}
}
"""
Expand All @@ -115,7 +115,7 @@ def disable_categories(workspace_id: int, categories_to_disable: Dict, is_import
for category_map in categories_to_disable.values():
if not use_code_in_naming and category_map['value'] == category_map['updated_value']:
continue
elif use_code_in_naming and (category_map['value'] == category_map['updated_value'] and category_map['code'] == category_map['update_code']):
elif use_code_in_naming and (category_map['value'] == category_map['updated_value'] and category_map['code'] == category_map['updated_code']):
continue

category_name = prepend_code_to_name(prepend_code_in_name=use_code_in_naming, value=category_map['value'], code=category_map['code'])
Expand Down
4 changes: 2 additions & 2 deletions apps/mappings/imports/modules/cost_centers.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def disable_cost_centers(workspace_id: int, cost_centers_to_disable: Dict, is_im
'value': 'old_cost_center_name',
'updated_value': 'new_cost_center_name',
'code': 'old_code',
'update_code': 'new_code' ---- if the code is updated else same as code
'updated_code': 'new_code' ---- if the code is updated else same as code
}
}
"""
Expand All @@ -91,7 +91,7 @@ def disable_cost_centers(workspace_id: int, cost_centers_to_disable: Dict, is_im
for cost_center_map in cost_centers_to_disable.values():
if not use_code_in_naming and cost_center_map['value'] == cost_center_map['updated_value']:
continue
elif use_code_in_naming and (cost_center_map['value'] == cost_center_map['updated_value'] and cost_center_map['code'] == cost_center_map['update_code']):
elif use_code_in_naming and (cost_center_map['value'] == cost_center_map['updated_value'] and cost_center_map['code'] == cost_center_map['updated_code']):
continue

cost_center_name = prepend_code_to_name(prepend_code_in_name=use_code_in_naming, value=cost_center_map['value'], code=cost_center_map['code'])
Expand Down
4 changes: 2 additions & 2 deletions apps/mappings/imports/modules/merchants.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def disable_merchants(workspace_id: int, merchants_to_disable: Dict, is_import_t
'value': 'old_merchant_name',
'updated_value': 'new_merchant_name',
'code': 'old_code',
'update_code': 'new_code' ---- if the code is updated else same as code
'updated_code': 'new_code' ---- if the code is updated else same as code
}
}
"""
Expand All @@ -99,7 +99,7 @@ def disable_merchants(workspace_id: int, merchants_to_disable: Dict, is_import_t
for merchant_map in merchants_to_disable.values():
if not use_code_in_naming and merchant_map['value'] == merchant_map['updated_value']:
continue
elif use_code_in_naming and (merchant_map['value'] == merchant_map['updated_value'] and merchant_map['code'] == merchant_map['update_code']):
elif use_code_in_naming and (merchant_map['value'] == merchant_map['updated_value'] and merchant_map['code'] == merchant_map['updated_code']):
continue

merchant_name = prepend_code_to_name(prepend_code_in_name=use_code_in_naming, value=merchant_map['value'], code=merchant_map['code'])
Expand Down
2 changes: 1 addition & 1 deletion apps/mappings/imports/modules/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def disable_projects(workspace_id: int, projects_to_disable: Dict, is_import_to_
for projects_map in projects_to_disable.values():
if not use_code_in_naming and projects_map['value'] == projects_map['updated_value']:
continue
elif use_code_in_naming and (projects_map['value'] == projects_map['updated_value'] and projects_map['code'] == projects_map['update_code']):
elif use_code_in_naming and (projects_map['value'] == projects_map['updated_value'] and projects_map['code'] == projects_map['updated_code']):
continue

project_name = prepend_code_to_name(prepend_code_in_name=use_code_in_naming, value=projects_map['value'], code=projects_map['code'])
Expand Down

0 comments on commit 510429d

Please sign in to comment.