Enforce correct empty default value

Signed-off-by: simonmicro <simon@simonmicro.de>
This commit is contained in:
simonmicro 2025-12-06 20:57:46 +01:00
parent c747f57dec
commit f53bbd4f6a
No known key found for this signature in database
GPG key ID: 033A4D4CE4E063D6

View file

@ -107,6 +107,7 @@ def sql_update(dbName, infoDict):
data = cur.fetchone()
if not data:
# Insert new row with all given info
infoDict["kmsEpid"] = "" # Default empty value
infoDict["requestCount"] = 1
cur.execute(f"""INSERT INTO clients ({', '.join(_column_name_to_index.keys())})
VALUES ({', '.join(':' + col for col in _column_name_to_index.keys())});""", infoDict)