summaryrefslogtreecommitdiff
path: root/parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'parser.py')
-rwxr-xr-xparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.py b/parser.py
index db363f3..96085d4 100755
--- a/parser.py
+++ b/parser.py
@@ -155,7 +155,7 @@ def main():
print("Added thought.")
case "export":
with open(args["out"], "w") as f:
- f.writelines(db.get_thought(args["id"]))
+ f.writelines(db.get_thought(args["id"])[-3])
print(f"Written to {args["out"]}")
case "update":
with open(args["markdown"], "r") as f: