Skip to content

Commit

Permalink
ID Deduplication: Fixed pre-commit issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mkumar-02 authored Jul 30, 2024
1 parent f35b066 commit 508833d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion g2p_registry_id_deduplication/models/registrant.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def get_id_types_with_kind(self, id_field, is_group):
ir_config = self.env["ir.config_parameter"].sudo()
id_type_ids_str = ir_config.get_param(f"g2p_registry_id_deduplication.{id_field}", default=None)

id_type_ids = id_type_ids_str.strip("][").split(", ") if id_type_ids_str is not None else ['']
id_type_ids = id_type_ids_str.strip("][").split(", ") if id_type_ids_str is not None else [""]
id_type_ids = id_type_ids if len(id_type_ids[0]) != 0 else []

if len(id_type_ids) < 1:
Expand Down

0 comments on commit 508833d

Please sign in to comment.