mirror of
https://forge.chapril.org/tykayn/orgmode-to-gemini-blog
synced 2025-06-20 09:04:42 +02:00
up gen gemini
This commit is contained in:
parent
bba1df0377
commit
6134f677fa
622 changed files with 165 additions and 544 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue