aboutsummaryrefslogtreecommitdiffstats
path: root/todoist
diff options
context:
space:
mode:
Diffstat (limited to 'todoist')
-rwxr-xr-xtodoist4
1 files changed, 1 insertions, 3 deletions
diff --git a/todoist b/todoist
index 837ffb9..d028a2e 100755
--- a/todoist
+++ b/todoist
@@ -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"] }