alternative way to make author_text

master
Michael Murtaugh 5 years ago
parent cc5ff4e008
commit e2ea5775e0

@ -41,9 +41,10 @@ for book in session.query(Book).all():
author_text = "" author_text = ""
for author in book.authors: for author in book.authors:
if not first: if not first:
text += ", " author_text += ", "
author_text += "<font size=12>{}</font>".format(author.name) author_text += author.name
first = False first = False
author_text = "<font size=12>{}</font>".format(author_text)
#if all_authors==['John Markoff']: #if all_authors==['John Markoff']:
# import ipdb; ipdb.set_trace() # import ipdb; ipdb.set_trace()

Loading…
Cancel
Save