Skip to content

Commit

Permalink
Fix check for show_age checkbox checkedness
Browse files Browse the repository at this point in the history
I didn’t remove it from the `request.web_input` call in the controller.
  • Loading branch information
charmander committed Mar 18, 2024
1 parent 5783190 commit 3dbe9d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weasyl/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ def edit_userinfo(userid, form):
if social_rows:
d.engine.execute(d.meta.tables['user_links'].insert().values(social_rows))

if 'show_age' in form and form.get('birthdate-month') and form.get('birthdate-year'):
if form.show_age and form.get('birthdate-month') and form.get('birthdate-year'):
birthdate_month = int(form['birthdate-month'])
birthdate_year = int(form['birthdate-year'])

Expand Down

0 comments on commit 3dbe9d8

Please sign in to comment.