no title
This commit is contained in:
@@ -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"<h2>Les news du {self._fr_date_today()}</h2>")
|
||||
#parts.append(f"<h2>Les news du {self._fr_date_today()}</h2>")
|
||||
first_image: Optional[str] = None
|
||||
|
||||
for post in items:
|
||||
|
||||
Reference in New Issue
Block a user