Stygt triks for å fjerne ekstra newline ved printing.
This commit is contained in:
parent
84f00e0140
commit
ca1f1cfbcb
|
@ -31,7 +31,7 @@ def show_book_or_person(ids, commit_format=False, tmp_file=False):
|
||||||
#return write_tmpfile('-'.join(ids), output)
|
#return write_tmpfile('-'.join(ids), output)
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
print output
|
print output.strip()
|
||||||
|
|
||||||
def get_book_or_person(id):
|
def get_book_or_person(id):
|
||||||
books = Book.objects.filter(Q(isbn=id)|Q(id__id=id)).all()
|
books = Book.objects.filter(Q(isbn=id)|Q(id__id=id)).all()
|
||||||
|
|
Reference in New Issue