diff --git a/simplelayout.py b/simplelayout.py index ec885b2..f67a0f7 100644 --- a/simplelayout.py +++ b/simplelayout.py @@ -41,9 +41,10 @@ for book in session.query(Book).all(): author_text = "" for author in book.authors: if not first: - text += ", " - author_text += "{}".format(author.name) + author_text += ", " + author_text += author.name first = False + author_text = "{}".format(author_text) #if all_authors==['John Markoff']: # import ipdb; ipdb.set_trace()