diff --git a/app.py b/app.py index 80d8ad9..ae52998 100644 --- a/app.py +++ b/app.py @@ -116,7 +116,8 @@ def post_to_post(post_key): metadata = postos.insert({ 'texto': data, - 'parent_post': f'{post_key}' + 'parent_post': f'{post_key}', + 'images': [] }, overwrite_mode='update') metadata = db.collection('post_parents').insert({ diff --git a/templates/i-posts.html b/templates/i-posts.html index bb5742f..d6252a8 100644 --- a/templates/i-posts.html +++ b/templates/i-posts.html @@ -7,9 +7,9 @@
{% endif %}
-
- {% if posto.images[0] | length > 0 %} + {% if posto.images[0] | length > 0 %} +