do a little bit of this because i need to continue stroking my genius
This commit is contained in:
@@ -56,8 +56,9 @@ for AppSetting in AppSettings:
|
||||
formatted_response = json.dumps(response.json(), indent=4)
|
||||
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)
|
||||
log.debug(f"Wrote {AppSetting}")
|
||||
log.debug(f"Wrote {AppSetting} to {expected_path}")
|
||||
else:
|
||||
log.error(f"Failed to retrieve {AppSetting}: {response.status_code}")
|
||||
Reference in New Issue
Block a user