Fix db connection reference

This commit is contained in:
speedst3r 2019-05-19 15:58:37 +08:00
parent 7e40ba63ff
commit 5441771843

View File

@ -75,7 +75,7 @@ def sql_update_epid(dbName, kmsRequest, response):
cmid = str(kmsRequest['clientMachineId'].get())
con = None
try:
con = sqlite3.connect(self.dbName)
con = sqlite3.connect(dbName)
cur = con.cursor()
cur.execute("SELECT * FROM clients WHERE clientMachineId=?;", [cmid])
try: