diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2020-11-23 16:35:44 -0500 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2020-11-23 16:35:50 -0500 |
| commit | d947660fdfc0b6275cbc095412004252ed6be1a0 (patch) | |
| tree | afd3f09786fd19c00c1a3bf03aa49a3b88f7a13b | |
| parent | a2b5ca793d74b43695b523bb815dc1d5381b902b (diff) | |
| download | famille-flask-d947660fdfc0b6275cbc095412004252ed6be1a0.tar.gz | |
fix embarassing bug
| -rw-r--r-- | famille.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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=?" |
