chore: 移除两行print

This commit is contained in:
helloplhm-qwq 2024-01-20 00:05:44 +08:00
parent cff11e69c4
commit 5e83c0546e
No known key found for this signature in database
GPG Key ID: B7542212855B2C26

View File

@ -366,7 +366,6 @@ def getCache(module, key):
(module, key)) (module, key))
result = cursor.fetchone() result = cursor.fetchone()
print(result)
if result: if result:
cache_data = json.loads(result[0]) cache_data = json.loads(result[0])
cache_data["time"] = int(cache_data["time"]) cache_data["time"] = int(cache_data["time"])
@ -391,7 +390,6 @@ def updateCache(module, key, data):
cursor.execute( cursor.execute(
"SELECT data FROM cache WHERE module=? AND key=?", (module, key)) "SELECT data FROM cache WHERE module=? AND key=?", (module, key))
result = cursor.fetchone() result = cursor.fetchone()
print(data)
if result: if result:
cursor.execute( cursor.execute(
"UPDATE cache SET data = ? WHERE module = ? AND key = ?", (json.dumps(data), module, key)) "UPDATE cache SET data = ? WHERE module = ? AND key = ?", (json.dumps(data), module, key))