Fikset noen småting i show_book_or_person.
This commit is contained in:
parent
80c58558cd
commit
ae465733f6
|
@ -18,7 +18,7 @@ def show_book_or_person(ids, commit_format=False, tmp_file=False):
|
|||
objects = map(get_book_or_person, ids)
|
||||
for i in range(len(ids)):
|
||||
if not objects[i]:
|
||||
objects[i] = 'No book or person with id %s.' % id
|
||||
objects[i] = 'No book or person with id %s.\n' % ids[i]
|
||||
elif commit_format:
|
||||
objects[i] = objects[i].to_dict()
|
||||
else:
|
||||
|
|
Reference in New Issue