up gen gemini

This commit is contained in:
Tykayn 2025-02-27 19:34:49 +01:00 committed by tykayn
parent bba1df0377
commit 6134f677fa
622 changed files with 165 additions and 544 deletions

View file

@ -21,6 +21,11 @@ with open(json_file, 'r', encoding='utf-8') as f:
# Trier les articles par date décroissante
sorted_articles = sorted(articles_info.values(), key=lambda x: x['date'], reverse=True)
# Vérifier s'il y a des articles avant de générer le flux
if not sorted_articles:
print("Aucun article trouvé. Le flux Atom ne sera pas généré.")
exit(0)
# Convert the date string to a valid ISO format
def convert_to_iso(date_str):
# Check if the string contains 'T' and replace it with a single 'T'