mirror of
https://github.com/Py-KMS-Organization/py-kms.git
synced 2026-01-24 00:50:16 +01:00
Enforce correct empty default value
Signed-off-by: simonmicro <simon@simonmicro.de>
This commit is contained in:
parent
c747f57dec
commit
f53bbd4f6a
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue