Fixed typo

This commit is contained in:
Joan
2023-03-13 18:31:50 +01:00
parent 15b8228005
commit acbb6fd2fd

View File

@@ -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):