diff --git a/views/loginlogout.py b/views/loginlogout.py index 2ece554..855f2a9 100644 --- a/views/loginlogout.py +++ b/views/loginlogout.py @@ -97,7 +97,7 @@ def login(): conn.close() if list_posts != None: for post in list_posts: - posts=[dict(title_id[0], title=post[1], subtitle=post[2], creation_date=post[3], last_updated=post[4], author=post[5])] + posts + posts=[dict(title_id=post[0], title=post[1], subtitle=post[2], creation_date=post[3], last_updated=post[4], author=post[5])] + posts resp = render_template('accueil.html', server_title=SERVER_TITLE,