check posts
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simple_Not 2023-07-14 12:34:27 +10:00
parent f670bc9b2c
commit 25725646cb
2 changed files with 4 additions and 0 deletions

1
app.py
View File

@ -77,6 +77,7 @@ def post_a_post(post_key):
#### TODO проверить как-то по-умному что мы таки его добавили
metadata = postos.insert({
'texto': 'next post is this',
'parent_post': f'{post_key}'
}, overwrite_mode='update')
metadata = db.collection('post_parents').insert({

View File

@ -20,6 +20,9 @@
<div class="col s8">
<div class="card-content white-text">
<span class="card-title">#{{ posto._key }}
{% if posto.parent_post %}
<span class="new badge" data-badge-caption=""><a href="#post-{{ posto.parent_post }}">>{{ posto.parent_post }}</a></span>
{% endif %}
<span class="new badge blue" data-badge-caption="">Ответов: {{ posto.answers_num }}</span>
<span class="new badge red" data-badge-caption="">Длина треда: {{ posto.children_num }}</span>
</span>