This commit is contained in:
parent
4024f8f032
commit
ec724d0c18
5
app.py
5
app.py
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user