mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
chore: 移除两行print
This commit is contained in:
parent
cff11e69c4
commit
5e83c0546e
@ -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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user