From dbc84b2cb9dc45dff29621561bfefeeb6fec2c88 Mon Sep 17 00:00:00 2001 From: fong Date: Mon, 3 Jul 2023 00:14:07 +0800 Subject: [PATCH] Signed-off-by: fong --- test2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test2.py b/test2.py index 31fb093..f163680 100644 --- a/test2.py +++ b/test2.py @@ -1,6 +1,6 @@ import json import re -f=open("database/switch_1688182997.json",'r',encoding='utf8') +f=open("database/ps4_1688182999.json",'r',encoding='utf8') jsdata=json.loads(f.read()) @@ -21,7 +21,7 @@ for i in jsdata['item_list']: print() js={} js['tempname']=i['item_name'] - js['type']="NS" + js['type']="ps4" js['SUK']=i['item_no'] js['salestart']=i['salestart'] @@ -36,6 +36,6 @@ for i in jsdata['item_list']: jsdump=json.dumps(js2,ensure_ascii=False, indent=4, separators=(',', ': ')) -f=open("database/NS_temp.json","w",encoding='utf8') +f=open("database/ps4_temp.json","w",encoding='utf8') f.write(jsdump) f.close