From ba16ab06c90d16b497e3a65035e5cc7cce6c23c7 Mon Sep 17 00:00:00 2001 From: Raz Date: Thu, 3 Apr 2025 13:32:49 +0200 Subject: [PATCH] fix licence-id stuff --- tournaments/utils/licence_validator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tournaments/utils/licence_validator.py b/tournaments/utils/licence_validator.py index 59935ad..105bb22 100644 --- a/tournaments/utils/licence_validator.py +++ b/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()