From 462fcaa27ee23696a0b807c6cc18b02888ebd8cb Mon Sep 17 00:00:00 2001 From: philpem Date: Fri, 1 Nov 2024 12:52:31 +0000 Subject: [PATCH] Allow ages over 100 (#1448) Oldest recorded human was 122 years 164 days but we're pretty sure she wasn't a Weasyl user. Either way, it might happen and we shouldn't be ageist. (no, this comment isn't entirely serious but we might as well fix this) Fixes #1447 Reviewed-by: Charmander <~@charmander.me> --- weasyl/profile.py | 2 +- weasyl/templates/control/edit_profile.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/weasyl/profile.py b/weasyl/profile.py index a7c0e9ca1..c107488aa 100644 --- a/weasyl/profile.py +++ b/weasyl/profile.py @@ -573,7 +573,7 @@ def edit_userinfo(userid, form): birthdate_month = int(form['birthdate-month']) birthdate_year = int(form['birthdate-year']) - if not (1 <= birthdate_month <= 12) or not (-100 <= birthdate_year - arrow.utcnow().year <= 0): + if not (1 <= birthdate_month <= 12) or not (-125 <= birthdate_year - arrow.utcnow().year <= 0): raise WeasylError("birthdayInvalid") birthdate_update = _BIRTHDATE_UPDATE_BASE diff --git a/weasyl/templates/control/edit_profile.html b/weasyl/templates/control/edit_profile.html index f81e8353c..e387421e8 100644 --- a/weasyl/templates/control/edit_profile.html +++ b/weasyl/templates/control/edit_profile.html @@ -39,7 +39,7 @@

Profile Settings