mirror of
https://github.com/Py-KMS-Organization/py-kms.git
synced 2026-04-21 06:03:43 +00:00
Enforce correct empty default value
Signed-off-by: simonmicro <simon@simonmicro.de>
This commit is contained in:
parent
cd7cbd113f
commit
bb9946b788
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue