Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
renamed variable to make more sense
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisveilleux committed Jul 8, 2021
1 parent 7b18a24 commit 7a5b51a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mycroft/skills/intent_services/adapt_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,11 @@ def take_best(intent, utt):
include_tags=True,
context_manager=self.context_manager)]
if intents:
intents_in_confidence_order = max(
intents_with_best_confidence = max(
intents,
key=lambda intent: intent.get('confidence', 0.0)
)
take_best(intents_in_confidence_order, utt_tup[0])
take_best(intents_with_best_confidence, utt_tup[0])

except Exception as err:
LOG.exception(err)
Expand Down

0 comments on commit 7a5b51a

Please sign in to comment.