fix lstrip 0 in licence id

sync_v2
Raz 6 months ago
parent 5ef46e5533
commit 3e2cc6afa5
  1. 2
      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:

Loading…
Cancel
Save