This commit is contained in:
parent
4024f8f032
commit
ec724d0c18
3
app.py
3
app.py
@ -62,6 +62,7 @@ def page_posts_from_db():
|
||||
|
||||
postos = db.collection('posts')
|
||||
postos = [ p for p in postos]
|
||||
postos = sorted(postos, key=lambda posto: posto['_key'], reverse=False)
|
||||
|
||||
return render_template("interactive-posts.html", postos=postos)
|
||||
|
||||
@ -86,6 +87,8 @@ def post_a_post(post_key):
|
||||
|
||||
|
||||
postos = db.collection('posts')
|
||||
postos = sorted(postos, key=lambda posto: posto['_key'], reverse=False)
|
||||
|
||||
return render_template("i-posts.html", postos=postos)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user