Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Jan 22, 2025
1 parent 7b04208 commit f10e0f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/concepts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ def get_serializer_class(self):

return ConceptListSerializer

def filter_queryset(self, _=None):
def filter_queryset(self, _=None): # pylint:disable=too-many-locals
rows = self.request.data.get('rows')
target_repo_url = self.request.data.get('target_repo_url')
target_repo_params = self.request.data.get('target_repo')
Expand Down Expand Up @@ -793,9 +793,9 @@ def filter_queryset(self, _=None):
concept._match_type = 'high' # pylint:disable=protected-access
if concept._highlight.get('name', None): # pylint:disable=protected-access
concept._match_type = 'very_high' # pylint:disable=protected-access
if is_semantic and concept._score > self.score_threshold_semantic_very_high:
if is_semantic and concept._score > self.score_threshold_semantic_very_high: # pylint:disable=protected-access,line-too-long
concept._match_type = 'very_high' # pylint:disable=protected-access
if not best_match or concept._match_type == 'very_high':
if not best_match or concept._match_type == 'very_high': # pylint:disable=protected-access
serializer = ConceptDetailSerializer if self.is_verbose() else ConceptMinimalSerializer
result['results'].append(
serializer(concept, context={'request': self.request}).data)
Expand Down

0 comments on commit f10e0f9

Please sign in to comment.