Rename id variable and mentions to id_

This commit is contained in:
Matheus Felipe 2023-01-01 18:21:17 -03:00
parent 74e5263c88
commit 0edad296fa
No known key found for this signature in database
GPG key ID: 3FB416EDA5965D0A
4 changed files with 34 additions and 34 deletions

View file

@ -16,7 +16,7 @@
<div class="about">by {{ post['username'] }} on {{ post['created'].strftime('%Y-%m-%d') }}</div>
</div>
{% if g.user['id'] == post['author_id'] %}
<a class="action" href="{{ url_for('blog.update', id=post['id']) }}">Edit</a>
<a class="action" href="{{ url_for('blog.update', id_=post['id']) }}">Edit</a>
{% endif %}
</header>
<p class="body">{{ post['body'] }}</p>