Checking year length

merge-requests/30/head
Bob Mottram 2024-03-04 17:13:18 +00:00
parent 5824f5768f
commit 6c1300039e
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ def receive_remove_post(self, calling_domain: str, cookie: str,
if self.post_to_nickname:
if month_str and year_str:
if len(month_str) <= 3 and \
len(year_str) <= 3 and \
len(year_str) <= 5 and \
month_str.isdigit() and \
year_str.isdigit():
year_int = int(year_str)