解决背包bug
This commit is contained in:
parent
627e3f7c33
commit
3a6a6242aa
4
main.py
4
main.py
@ -148,10 +148,10 @@ class MyPlugin(Star):
|
|||||||
date = cur.fetchone()
|
date = cur.fetchone()
|
||||||
baglist = json.loads(date[0])
|
baglist = json.loads(date[0])
|
||||||
baglist_str = ""
|
baglist_str = ""
|
||||||
if len(baglist) == 0:
|
if len(baglist["baglist"]) == 0:
|
||||||
baglist_str = "背包空空如也"
|
baglist_str = "背包空空如也"
|
||||||
else:
|
else:
|
||||||
for item in baglist:
|
for item in baglist["baglist"]:
|
||||||
if get_tool_name(item["id"]) is None:
|
if get_tool_name(item["id"]) is None:
|
||||||
cur.close()
|
cur.close()
|
||||||
conn.close()
|
conn.close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user