From 9bebf9c939695b7b6e5c5477266f6bc3ae2f7402 Mon Sep 17 00:00:00 2001 From: Doug Le Tough Date: Tue, 13 Mar 2018 15:22:40 +0100 Subject: [PATCH] "BUGFIX Diet can be null" --- config.py | 5 ++++- participate.py | 4 ++-- templates/account.html | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) mode change 120000 => 100644 config.py diff --git a/config.py b/config.py deleted file mode 120000 index 26e8fb0..0000000 --- a/config.py +++ /dev/null @@ -1 +0,0 @@ -config.local.py \ No newline at end of file diff --git a/config.py b/config.py new file mode 100644 index 0000000..8244078 --- /dev/null +++ b/config.py @@ -0,0 +1,4 @@ +SQLALCHEMY_TRACK_MODIFICATIONS = True +SQLALCHEMY_DATABASE_URI = "postgresql://participer_thsf:participer_thsf@localhost/participer_thsf" +UPLOADED_FILES_DEST = "./upload" +DOMAIN_URL = "https://participer.redatomik.org" diff --git a/participate.py b/participate.py index ab7e0ab..a16baa7 100755 --- a/participate.py +++ b/participate.py @@ -362,8 +362,8 @@ def check_user_info(): name = user.name phone = user.phone diet = user.diet - if name == None or phone == None or diet == None or \ - len(name) == 0 or len(phone) == 0 or len(diet) == 0: + if name == None or phone == None or \ + len(name) == 0 or len(phone) == 0: message = "Vos informations personnelles ne sont pas complètement renseignées. N'oubliez pas de remplir votre fiche située dans la section 'Mon compte'" return message.decode('utf-8') diff --git a/templates/account.html b/templates/account.html index a63bdd4..e18ec4d 100644 --- a/templates/account.html +++ b/templates/account.html @@ -22,8 +22,8 @@


-
-
+
+