talentmap_api/organization/models.py
Showing 2 of 2 total issues
Function update_relationships
has a Cognitive Complexity of 19 (exceeds 7 allowed). Consider refactoring. Open
Open
def update_relationships(self): ''' Update the organization relationships, using the codes stored in the _parent fields. ''' if self._parent_bureau_code:
- Read upRead up
Function update_relationships
has a Cognitive Complexity of 8 (exceeds 7 allowed). Consider refactoring. Open
Open
def update_relationships(self): # Search for country based on location prefix country = Country.objects.filter(location_prefix=self.code[:2]) if country.count() != 1: # Try matching by name
- Read upRead up