From 2d2c6bfa2b5fba111d06864ee19747c4c335f24c Mon Sep 17 00:00:00 2001 From: cleverson Date: Tue, 30 Apr 2024 17:13:07 -0300 Subject: [PATCH] =?UTF-8?q?corre=C3=A7=C3=A3o=20no=20published=5Fat=20na?= =?UTF-8?q?=20api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api.py | 2 ++ static/css/style.css | 2 +- templates/about/index.html | 6 +++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/api.py b/app/api.py index a7d5798..cf253e6 100644 --- a/app/api.py +++ b/app/api.py @@ -187,6 +187,8 @@ def update_post(id): date_published = None if post.status == "draft" and status_publication == "published": date_published = datetime.utcnow() + elif post.published_at is not None: + date_published = post.published_at contentManager.update_content( diff --git a/static/css/style.css b/static/css/style.css index 84788fc..a21a97a 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -511,7 +511,7 @@ footer{ } .img-event{ - width: -webkit-fill-available; + width: auto; border-radius: 5px; } diff --git a/templates/about/index.html b/templates/about/index.html index 686f510..d29ab7f 100644 --- a/templates/about/index.html +++ b/templates/about/index.html @@ -52,9 +52,9 @@

Olá mundo! além -

- imagem do evento -

+ + imagem do evento +

No mesmo ano, dei meus primeiros passos como freelancer em programação, focando no desenvolvimento front-end com HTML, CSS e PHP.