Adding priority to single-word tags when resorting tags
This commit is contained in:
@@ -436,6 +436,9 @@ def update_scores(scores, text, base, bonus_first, bonus_4_10, include_new=True)
|
||||
else:
|
||||
points = base
|
||||
|
||||
if len(tag.split()) == 1:
|
||||
points += 1
|
||||
|
||||
if tag in scores:
|
||||
scores[tag] += points
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user