From 3e2cc6afa5517d0f0d5184101272fb156eccffd0 Mon Sep 17 00:00:00 2001 From: Raz Date: Thu, 1 May 2025 13:10:54 +0200 Subject: [PATCH] fix lstrip 0 in licence id --- tournaments/utils/licence_validator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tournaments/utils/licence_validator.py b/tournaments/utils/licence_validator.py index e3b51ef..4131192 100644 --- a/tournaments/utils/licence_validator.py +++ b/tournaments/utils/licence_validator.py @@ -2,7 +2,7 @@ import re class LicenseValidator: def __init__(self, license_id: str): - self.license_id = license_id.upper() # Ensure uppercase for consistency + self.license_id = license_id.lstrip('0').upper() # Ensure uppercase for consistency @property def stripped_license(self) -> str: