From 25890ee36217c4c9b152cf3c38603725f65edfac Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sun, 29 Sep 2019 17:01:25 +0200 Subject: Read entries before printing their name after creating and editing them. --- lesana/command.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lesana/command.py b/lesana/command.py index 3a3db55..bc0de97 100644 --- a/lesana/command.py +++ b/lesana/command.py @@ -91,7 +91,8 @@ class New(Command): collection.update_cache([filepath]) if self.args.git: collection.git_add_files([filepath]) - print(new_entry) + saved_entry = collection.entry_from_uid(new_entry.uid) + print(saved_entry) class Edit(Command): @@ -127,7 +128,8 @@ class Edit(Command): collection.update_cache([filepath]) if self.args.git: collection.git_add_files([filepath]) - print(entry) + saved_entry = collection.entry_from_uid(entry.uid) + print(saved_entry) class Show(Command): -- cgit v1.2.3