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

This commit is contained in:
Simple_Not 2023-07-13 22:01:47 +10:00
parent 4024f8f032
commit ec724d0c18

5
app.py
View File

@ -62,6 +62,7 @@ def page_posts_from_db():
postos = db.collection('posts') postos = db.collection('posts')
postos = [ p for p in postos] postos = [ p for p in postos]
postos = sorted(postos, key=lambda posto: posto['_key'], reverse=False)
return render_template("interactive-posts.html", postos=postos) return render_template("interactive-posts.html", postos=postos)
@ -85,7 +86,9 @@ def post_a_post(post_key):
}, overwrite_mode='update') }, overwrite_mode='update')
postos = db.collection('posts') postos = db.collection('posts')
postos = sorted(postos, key=lambda posto: posto['_key'], reverse=False)
return render_template("i-posts.html", postos=postos) return render_template("i-posts.html", postos=postos)