diff --git a/post_rss_to_ghost.py b/post_rss_to_ghost.py index 653f329..058a92f 100644 --- a/post_rss_to_ghost.py +++ b/post_rss_to_ghost.py @@ -89,6 +89,7 @@ class GhostAdmin: self.base = admin_url.rstrip("/") + "/" self.key_id, self.key_secret_hex = admin_key.split(":") self.accept_version = accept_version + def _jwt(self) -> str: iat = int(time.time()) @@ -181,7 +182,7 @@ class GhostTask: async def maybe_run_today(self): if not self._published_today(): - LOG.info("Aucune newsletter publiée aujourd'hui → génération immédiate.") + LOG.info("Aucune newsletter publiée aujourd'hui -> génération immédiate.") await self.daily_task() else: LOG.info("Déjà publié aujourd'hui, on attend la prochaine fenêtre.") @@ -245,7 +246,7 @@ class GhostTask: - Images: collecte la première pour feature_image """ parts: List[str] = [] - parts.append(f"