Projects/worblehat-old
Projects
/
worblehat-old
Archived
12
0
Fork 0

Fikset noen småting i show_book_or_person.

This commit is contained in:
Øystein Ingmar Skartsæterhagen 2011-03-06 12:55:59 +00:00
parent 80c58558cd
commit ae465733f6
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ def show_book_or_person(ids, commit_format=False, tmp_file=False):
objects = map(get_book_or_person, ids) objects = map(get_book_or_person, ids)
for i in range(len(ids)): for i in range(len(ids)):
if not objects[i]: 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: elif commit_format:
objects[i] = objects[i].to_dict() objects[i] = objects[i].to_dict()
else: else: