diff options
Diffstat (limited to 'jt')
-rwxr-xr-x | jt | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -113,7 +113,7 @@ class AttachCommand(Command): if len(args) < 2: raise cliapp.AppException('Usage: journal-note attach ID file...') - drafts_dir = DraftsDir(self._app.draft_dir()) + drafts_dir = DraftsDirectory(self._app.draft_dir()) filename = drafts_dir.get_draft_pathname(args[0]) dirname, ext = os.path.splitext(filename) @@ -131,7 +131,8 @@ class RemoveCommand(Command): if not args: raise cliapp.AppException('Usage: journal-note remove ID') - filename = self._app.draft_name(args[0]) + drafts_dir = DraftsDirectory(self._app.drafts_dir()) + filename = drafts_dir.get_draft_pathname(args[0]) os.remove(filename) dirname, ext = os.path.splitext(filename) |