From a6ce2c56470980022c919ccdd8c92386d1296146 Mon Sep 17 00:00:00 2001 From: kitoy Date: Sat, 10 Jan 2026 01:26:38 +0100 Subject: [PATCH] Choice for color theme less buggy --- templates/profil.html | 6 +++--- views/profil.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/profil.html b/templates/profil.html index 5bb300e..b71dd9c 100644 --- a/templates/profil.html +++ b/templates/profil.html @@ -30,9 +30,9 @@
- - + diff --git a/views/profil.py b/views/profil.py index b263964..e925141 100644 --- a/views/profil.py +++ b/views/profil.py @@ -68,7 +68,7 @@ def profile() : f = request.files['fic'] - if request.form['theme'] != "Default": + if request.form['theme']: copy( "static/vendors/picocss/pico.fluid.classless."+request.form['theme']+".min.css", os.path.join(DOSSIER_PERSO, user ,'theme.min.css') )