mirror of
https://github.com/Py-KMS-Organization/py-kms.git
synced 2026-01-24 09:00:17 +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()
|
data = cur.fetchone()
|
||||||
if not data:
|
if not data:
|
||||||
# Insert new row with all given info
|
# Insert new row with all given info
|
||||||
|
infoDict["kmsEpid"] = "" # Default empty value
|
||||||
infoDict["requestCount"] = 1
|
infoDict["requestCount"] = 1
|
||||||
cur.execute(f"""INSERT INTO clients ({', '.join(_column_name_to_index.keys())})
|
cur.execute(f"""INSERT INTO clients ({', '.join(_column_name_to_index.keys())})
|
||||||
VALUES ({', '.join(':' + col for col in _column_name_to_index.keys())});""", infoDict)
|
VALUES ({', '.join(':' + col for col in _column_name_to_index.keys())});""", infoDict)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue