From 4fa225900f496aa3c4dc517a02635a8fa1615bf2 Mon Sep 17 00:00:00 2001 From: kitoy Date: Wed, 28 Jan 2026 05:39:50 +0100 Subject: [PATCH] categoory doesn't work! --- views/blog.py | 2 +- views/filesupload.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/views/blog.py b/views/blog.py index ba6f7cf..e2c00ab 100644 --- a/views/blog.py +++ b/views/blog.py @@ -76,7 +76,7 @@ def edit(title): cursor.execute("""SELECT title, subtitle, category, content, status FROM Blog_posts WHERE title=? AND author=?""", (title, user)) oldpost = cursor.fetchone() conn.close() - post = dict(title=oldpost[0], subtitle=oldpost[1], categoory=oldpost[2], content=oldpost[3], status=oldpost[4]) + post = dict(title=oldpost[0], subtitle=oldpost[1], category=oldpost[2], content=oldpost[3], status=oldpost[4]) return render_template('edit_article.html', section='Post-it', oldpost=post) diff --git a/views/filesupload.py b/views/filesupload.py index d32e9b3..8cca620 100644 --- a/views/filesupload.py +++ b/views/filesupload.py @@ -237,7 +237,7 @@ def blog_theme(author): if os.path.isfile(os.path.join(DOSSIER_PERSO, user,'blog.css')): return send_file(os.path.join(DOSSIER_PERSO, user, 'blog.css'), mimetype='text/css') else: - return send_file("/static/blog.css", mimetype='text/css') + return send_file("static/blog.css", mimetype='text/css') @filesupload.route('/theme.min.css') def theme():