page de tags avec échelle de taille selon la fréquence

This commit is contained in:
Tykayn 2025-05-12 23:01:56 +02:00 committed by tykayn
parent 341292aa12
commit a473479b83
7 changed files with 112 additions and 58 deletions

View file

@ -232,6 +232,8 @@ def save_untagged_files(output_file="sources/site_web/build/articles_without_tag
os.makedirs(os.path.dirname(output_file), exist_ok=True)
print('save_untagged_files', len(untagged_files))
for f in untagged_files:
print('- ', f)
# Sauvegarder la liste dans le fichier JSON
with open(output_file, 'w', encoding='utf-8') as f:
json.dump(untagged_files, f, ensure_ascii=False, indent=4)