From acbb6fd2fddea9222ab704e9ea31628b731a42e2 Mon Sep 17 00:00:00 2001 From: Joan Date: Mon, 13 Mar 2023 18:31:50 +0100 Subject: [PATCH] Fixed typo --- wallamanta/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallamanta/helpers.py b/wallamanta/helpers.py index 523d62a..f04b173 100644 --- a/wallamanta/helpers.py +++ b/wallamanta/helpers.py @@ -115,7 +115,7 @@ def create_image(article): image.save(f"/app/data/images/products/{article['id']}_composed.png", quality=95) def get_publish_date(article): - article_date = article['created_at'] + article_date = article['creation_date'] return datetime.fromtimestamp(int(int(article_date)/1000)).astimezone(pytz.timezone("Europe/Madrid")).strftime("%d/%m/%Y - %H:%M:%S") async def send_article(article, product):