From 25e5430b4cab869aa2d1f3e3e18f9198fb56b647 Mon Sep 17 00:00:00 2001 From: Simple_Not <44047940+moonbaseDelta@users.noreply.github.com> Date: Tue, 30 Jan 2024 00:02:38 +1000 Subject: [PATCH] re ans-post --- app.py | 3 ++- templates/i-posts.html | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) 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 %} +