diff options
Diffstat (limited to 'todoist')
-rwxr-xr-x | todoist | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -24,8 +24,6 @@ import json import todoist -from pprint import pprint - TOKEN_FILE_NAME = ".todoist_token" DUMP_FILENAME = "dump.txt" @@ -92,7 +90,7 @@ def store_token(token): def dump(data): with open(DUMP_FILENAME, mode="w") as f: - pprint(data, f) + f.write(json.dumps(data, ensure_ascii=False, indent=4)) def build_project_list(data): projects = { proj["name"].lower(): proj["id"] for proj in data["Projects"] } |