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

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
1 changed files with 1 additions and 1 deletions

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()