Stygt triks for å fjerne ekstra newline ved printing.

This commit is contained in:
Øystein Ingmar Skartsæterhagen 2011-03-06 12:25:27 +00:00
parent 84f00e0140
commit ca1f1cfbcb

View File

@ -31,7 +31,7 @@ def show_book_or_person(ids, commit_format=False, tmp_file=False):
#return write_tmpfile('-'.join(ids), output)
pass
else:
print output
print output.strip()
def get_book_or_person(id):
books = Book.objects.filter(Q(isbn=id)|Q(id__id=id)).all()