From 689c142d2edc1f266cb2a8be36d60289ef3e388e Mon Sep 17 00:00:00 2001 From: kitoy Date: Sat, 31 Oct 2026 01:43:16 +0100 Subject: [PATCH] Update landing page for print article in chronological order --- views/loginlogout.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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