Skip to content

Commit

Permalink
correção no published_at na api
Browse files Browse the repository at this point in the history
  • Loading branch information
thisiscleverson committed Apr 30, 2024
1 parent 1b8b58a commit 2d2c6bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions app/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ footer{
}

.img-event{
width: -webkit-fill-available;
width: auto;
border-radius: 5px;
}

Expand Down
6 changes: 3 additions & 3 deletions templates/about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ <h2>Olá mundo! <img src="https://cdn3.emoji.gg/emojis/8969-parrotvibe.gif" alt=
além de um website para monitoramento do nível de rios em tempo real. Infelizmente não ganhamos,
mas fomos semifinalista.
</p>
<p>
<img src="https://i.imgur.com/jRPRogQ.jpeg" alt="imagem do evento" class="img-event">
</p>

<img src="https://i.imgur.com/jRPRogQ.jpeg" alt="imagem do evento" class="img-event">

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

0 comments on commit 2d2c6bf

Please sign in to comment.