summaryrefslogtreecommitdiff
path: root/parser.py
diff options
context:
space:
mode:
authoryuzu-eva <cafebabe@disroot.org>2025-03-11 15:13:51 +0100
committeryuzu-eva <cafebabe@disroot.org>2025-03-11 15:13:51 +0100
commite5726cc1fd734c28529df1f540043c86bae1dfc4 (patch)
tree4dc3aba1e65a4bff772c01fed164e5721a3802b7 /parser.py
parent4fd81b67c61102042b0830663072577639692c3a (diff)
fixed export and update
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: