From 0f84afc99a8607851ffd968b74cba0e064043985 Mon Sep 17 00:00:00 2001 From: kitoy Date: Sun, 22 Mar 2026 20:59:36 +0100 Subject: [PATCH] Forget query in new blog post --- views/blog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/blog.py b/views/blog.py index d20e3cb..fd45792 100644 --- a/views/blog.py +++ b/views/blog.py @@ -294,7 +294,7 @@ def viewArticle(username, title_id): user = '%s' % escape(username) 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, content, creation_date, last_updated, author FROM Blog_posts WHERE author=? AND title=? AND status='public_unified' """, (user, title_id) ) + cursor.execute("""SELECT title_id, title, subtitle, content, creation_date, last_updated, author FROM Blog_posts WHERE author=? AND title_id=? AND status='public_unified' """, (user, title_id) ) post = cursor.fetchone() conn.close() if post != None: