Skip to content

Commit

Permalink
fix: _get_priority_translation_result using wrong variable (#504)
Browse files Browse the repository at this point in the history
- Was using `translations` when it should have been using
  `preferred_translations`
  • Loading branch information
korikuzma committed Sep 22, 2023
1 parent 5bdacf3 commit 8d7150c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions variation/normalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ def _get_priority_translation_result(
key=lambda t: (t.og_ac.split(".")[0], int(t.og_ac.split(".")[1])),
reverse=True,
)
translation_result = translations[0]
translation_result = preferred_translations[0]
elif len_preferred_translations == 1:
translation_result = translations[0]
translation_result = preferred_translations[0]
else:
translation_result = None

Expand Down

0 comments on commit 8d7150c

Please sign in to comment.