From de591789f5ab68458d060d6ea96bf8dcbbe4df8c Mon Sep 17 00:00:00 2001 From: Kyomotoi <1172294279@qq.com> Date: Wed, 12 Aug 2020 22:38:05 +0800 Subject: [Fix] f**k some ntr --- ATRI/plugins/pixiv.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ATRI/plugins/pixiv.py') diff --git a/ATRI/plugins/pixiv.py b/ATRI/plugins/pixiv.py index 5ca7b20..be0cce0 100644 --- a/ATRI/plugins/pixiv.py +++ b/ATRI/plugins/pixiv.py @@ -35,7 +35,7 @@ async def _(session: CommandSession): with open('ATRI/plugins/noobList/noobList.json', 'r') as f: data = json.load(f) - if data[f"{user}"] == str(user): + if str(user) in data.keys(): pass else: with open('ATRI/plugins/switch/switch.json', 'r') as f: @@ -88,7 +88,7 @@ async def _(session: CommandSession): with open('ATRI/plugins/noobList/noobList.json', 'r') as f: data = json.load(f) - if data[f"{user}"] == str(user): + if str(user) in data.keys(): pass else: with open('ATRI/plugins/switch/switch.json', 'r') as f: @@ -148,7 +148,7 @@ async def _(session: CommandSession): with open('ATRI/plugins/noobList/noobList.json', 'r') as f: data = json.load(f) - if data[f"{user}"] == str(user): + if str(user) in data.keys(): pass else: with open('ATRI/plugins/switch/switch.json', 'r') as f: -- cgit v1.2.3