set minimum score to 20

This commit is contained in:
OneNewDev 2022-05-28 14:52:25 +02:00
parent 425b8588fd
commit d1c75bd274

View file

@ -68,7 +68,7 @@ class FileScanner(HTMLParser):
self.texte.append(data)
def display_tags(tags, min_score=10):
def display_tags(tags, min_score):
for tag in tags:
if tag.score <= min_score:
continue
@ -101,7 +101,7 @@ def main():
continue
scanner = FileScanner(file)
tags = scanner.scan_file()
display_tags(tags)
display_tags(tags, min_score=20)
final_tags[title] = tags[:TAGS_PER_ARTICLE] if len(tags) > TAGS_PER_ARTICLE else tags
# write_tags(final_tags)