diff options
| author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2019-09-29 17:01:25 +0200 | 
|---|---|---|
| committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2019-09-29 17:01:25 +0200 | 
| commit | 25890ee36217c4c9b152cf3c38603725f65edfac (patch) | |
| tree | 15454a7be656109ae01550507e04d035446194c2 | |
| parent | 84e971f34cd2d1054a38fdd33b8723553a6ad227 (diff) | |
Read entries before printing their name after creating and editing them.
| -rw-r--r-- | lesana/command.py | 6 | 
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): | 
