1
0

do a little bit of this because i need to continue stroking my genius

This commit is contained in:
2025-08-19 00:53:25 -04:00
parent 00dbde4a81
commit 105742820f

View File

@@ -56,8 +56,9 @@ for AppSetting in AppSettings:
formatted_response = json.dumps(response.json(), indent=4) formatted_response = json.dumps(response.json(), indent=4)
log.debug(f"Formatted {AppSetting}") log.debug(f"Formatted {AppSetting}")
with open(os.path.join(DST_DIR, f"{AppSetting}.json"), "w") as f: expected_path = os.path.join(DST_DIR, f"{AppSetting}.json")
with open(expected_path, "w") as f:
f.write(formatted_response) f.write(formatted_response)
log.debug(f"Wrote {AppSetting}") log.debug(f"Wrote {AppSetting} to {expected_path}")
else: else:
log.error(f"Failed to retrieve {AppSetting}: {response.status_code}") log.error(f"Failed to retrieve {AppSetting}: {response.status_code}")