mirror of
https://github.com/SystemRage/py-kms.git
synced 2024-11-26 02:05:39 +01:00
commit
413cbfa7fd
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import os
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
# sqlite3 is optional.
|
# sqlite3 is optional.
|
||||||
@ -74,7 +75,7 @@ def sql_update_epid(dbName, kmsRequest, response):
|
|||||||
cmid = str(kmsRequest['clientMachineId'].get())
|
cmid = str(kmsRequest['clientMachineId'].get())
|
||||||
con = None
|
con = None
|
||||||
try:
|
try:
|
||||||
con = sqlite3.connect(self.dbName)
|
con = sqlite3.connect(dbName)
|
||||||
cur = con.cursor()
|
cur = con.cursor()
|
||||||
cur.execute("SELECT * FROM clients WHERE clientMachineId=?;", [cmid])
|
cur.execute("SELECT * FROM clients WHERE clientMachineId=?;", [cmid])
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user