slack import: Write reasonable multi-line JSON.

This is a lot better for debugging.
This commit is contained in:
Tim Abbott
2018-04-09 10:00:12 -07:00
parent 025956482a
commit c41d7ee300

View File

@@ -923,4 +923,4 @@ def get_slack_api_data(token: str, slack_api_url: str, get_param: str) -> Any:
def create_converted_data_files(data: Any, output_dir: str, file_path: str) -> None:
output_file = output_dir + file_path
json.dump(data, open(output_file, 'w'))
json.dump(data, open(output_file, 'w'), indent=4)