aboutsummaryrefslogtreecommitdiff
path: root/lesana/command.py
diff options
context:
space:
mode:
Diffstat (limited to 'lesana/command.py')
-rw-r--r--lesana/command.py6
1 files 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):