diff --git a/cli/worblehat.py b/cli/worblehat.py index 8a34db5..8ee8d69 100644 --- a/cli/worblehat.py +++ b/cli/worblehat.py @@ -85,7 +85,9 @@ def show(connection, ids, commit_format=False, tmp_file=False): for i in range(len(ids)): if not objects[i]: objects[i] = 'No object with id %s.\n' % ids[i] - elif not commit_format: + elif commit_format: + objects[i]['action'] = 'edit-%s' % objects[i]['type'] + else: show_funs = {'book': show_book, 'person': show_person, 'category': show_category}