aboutsummaryrefslogtreecommitdiffstats
path: root/famille.py
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2020-11-23 16:35:44 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2020-11-23 16:35:50 -0500
commitd947660fdfc0b6275cbc095412004252ed6be1a0 (patch)
treeafd3f09786fd19c00c1a3bf03aa49a3b88f7a13b /famille.py
parenta2b5ca793d74b43695b523bb815dc1d5381b902b (diff)
downloadfamille-flask-d947660fdfc0b6275cbc095412004252ed6be1a0.tar.gz
fix embarassing bug
Diffstat (limited to 'famille.py')
-rw-r--r--famille.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/famille.py b/famille.py
index 05e7cef..a3b844d 100644
--- a/famille.py
+++ b/famille.py
@@ -274,7 +274,7 @@ def edit_user():
result['notify'] = "notify" in request.form
for k in ["birthday", "nameday", "email", "phone", "adress_line1",
"adress_line2", "adress_city_line", "timezone"]:
- if k in result.form:
+ if k in request.form:
result[k] = request.form[k]
set_string = ",".join([f"{k}=?" for k in result.keys()])
sqlstr = f"UPDATE users SET {set_string} WHERE id=?"