fix licence-id stuff

sync_v2
Raz 7 months ago
parent 3f03ede642
commit ba16ab06c9
  1. 4
      tournaments/utils/licence_validator.py

@ -15,7 +15,7 @@ class LicenseValidator:
@property
def computed_licence_id(self) -> str:
return f"{self.stripped_license}{self.computed_license_key.upper()}"
return f"{self.stripped_license}{self.computed_license_key}".upper()
@property
def computed_license_key(self) -> str:
@ -45,4 +45,4 @@ class LicenseValidator:
given_letter = self.license_id[-1]
# Verify that the last character matches the computed license key
return self.computed_licence_id == numeric_part + given_letter
return self.computed_licence_id == numeric_part + given_letter.upper()

Loading…
Cancel
Save