Forget query in new blog post

This commit is contained in:
2026-03-22 20:59:36 +01:00
parent e4f7ef6ab4
commit 0f84afc99a

View File

@@ -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: