Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
adbar committed Jun 4, 2024
1 parent 2434b82 commit db120b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion courlan/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def lang_filter(
occurrences = ALL_PATH_LANGS_NO_TRAILING.findall(url)
if len(occurrences) == 1:
score = langcodes_score(language, match[1], score)
elif len(occurrences) <= 2:
elif len(occurrences) == 2:
for occurrence in occurrences:
score = langcodes_score(language, occurrence, score)
# don't perform the test if there are too many candidates: > 2
Expand Down

0 comments on commit db120b0

Please sign in to comment.