Access sets using /set_num

This commit is contained in:
2024-02-29 13:44:28 -05:00
parent 2e2eab7d6f
commit edaaf910ca
3 changed files with 9 additions and 10 deletions

View File

@@ -54,9 +54,8 @@ if Path("./info/"+set_num + ".json").is_file():
with open("./info/" + set_num + ".json",'w') as f:
json.dump(data,f,indent = 4)
else:
with open(set_path+'info.json', 'w', encoding='utf-8') as f:
json.dump(response, f, ensure_ascii=False, indent=4)
with open(set_path+'info.json', 'w', encoding='utf-8') as f:
json.dump(response, f, ensure_ascii=False, indent=4)
# save set image to folder
set_img_url = response["set_img_url"]