diff --git a/py-kms/pykms_Client.py b/py-kms/pykms_Client.py index f134ae6..6ff92e0 100644 --- a/py-kms/pykms_Client.py +++ b/py-kms/pykms_Client.py @@ -170,7 +170,7 @@ def client_update(): for appitem in appitems: kmsitems = appitem['KmsItems'] for kmsitem in kmsitems: - name = re.sub(r'\(.*\)', '', kmsitem['DisplayName']) # Remove bracets + name = re.sub(r'\(.*\)', '', kmsitem['DisplayName']) # Remove brackets name = name.replace('2015', '') # Remove specific years name = name.replace(' ', '') # Ignore whitespaces name = name.replace('/11', '', 1) # Cut out Windows 11, as it is basically Windows 10 diff --git a/py-kms/pykms_Server.py b/py-kms/pykms_Server.py index ccaa025..31e7e2e 100755 --- a/py-kms/pykms_Server.py +++ b/py-kms/pykms_Server.py @@ -385,7 +385,6 @@ def server_check(): else: srv_config['sqlite'] = False - # Check other specific server options. opts = [('clientcount', '-c/--client-count'), ('timeoutidle', '-t0/--timeout-idle'), diff --git a/py-kms/pykms_Sql.py b/py-kms/pykms_Sql.py index 1fd2fbc..2c9989c 100644 --- a/py-kms/pykms_Sql.py +++ b/py-kms/pykms_Sql.py @@ -121,7 +121,7 @@ def sql_update(dbName, infoDict): query = f"UPDATE clients SET {column_name}=? {common_postfix}" cur.execute(query, (new_value, infoDict['clientMachineId'], infoDict['applicationId'])) - # Dynamically check and maybe up date all columns + # Dynamically check and maybe update all columns for column_name in _column_name_to_index.keys(): if column_name in ["clientMachineId", "applicationId", "requestCount"]: continue # Skip these columns diff --git a/py-kms/templates/clients.html b/py-kms/templates/clients.html index f489389..e2fab38 100644 --- a/py-kms/templates/clients.html +++ b/py-kms/templates/clients.html @@ -99,7 +99,7 @@ th {

Whoops?

- This page seems to be empty, because no clients are available. Try to use the server with a compartible client + This page seems to be empty, because no clients are available. Try to use the server with a compatible client to add it to the database.