Convert to integer

main
Bob Mottram 2022-12-05 20:28:06 +00:00
parent bac9570ca8
commit ea0a245ad7
1 changed files with 1 additions and 1 deletions

View File

@ -6387,7 +6387,7 @@ class PubServer(BaseHTTPRequestHandler):
remaining = get_config_param(base_dir, reg_str)
if fields.get('regRemaining'):
if fields['regRemaining'] != remaining:
remaining = fields['regRemaining']
remaining = int(fields['regRemaining'])
if remaining < 0:
remaining = 0
elif remaining > 10: