2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-12-18 06:22:18 +00:00

fixing deprecated syntax

This commit is contained in:
Philip Sargent 2024-12-12 17:07:14 +00:00
parent 1ffc971285
commit bbdd2cc58f

View File

@ -379,7 +379,7 @@ def walletedit(request, path=None):
# if nonumeric wpath name for example
return (oldwallet(request, path), None)
if not re.match("(19|20)\d\d[:#]\d\d\d?", wpath):
if not re.match("(19|20)[0-9][0-9][:#]\d{2,3}", wpath):
return (None, get_next_empty() )
ymin, ymax = YEAR_RANGE