diff --git a/views/loginlogout.py b/views/loginlogout.py index 1f7c100..629ca64 100644 --- a/views/loginlogout.py +++ b/views/loginlogout.py @@ -90,7 +90,8 @@ def login(): else: conn = sqlite3.connect(DATABASE) # Connexion à la base de donnée cursor = conn.cursor() # Création de l'objet "curseur" - cursor.execute("""SELECT title_id, title, subtitle, creation_date, last_updated, author FROM Blog_posts WHERE status='public_unified'""" ) + cursor.execute("""SELECT title_id, title, subtitle, creation_date, last_updated, author FROM Blog_posts + WHERE status='public_unified' ORDER BY creation_date""" ) list_posts=cursor.fetchall() posts=list() id=0