1414
1515
1616def get_books_by_publishers (session , ascending = True ):
17- """Get a list of publisher and the total number of books they've published
17+ """Get a list of publishers and the number of books they've published
1818
1919 Args:
2020 session: database session to use
@@ -39,7 +39,7 @@ def get_books_by_publishers(session, ascending=True):
3939
4040
4141def get_authors_by_publishers (session , ascending = True ):
42- """Get a list of publisher and the total number of authors they've published
42+ """Get a list of publishers and the number of authors they've published
4343
4444 Args:
4545 session: database session to use
@@ -177,13 +177,13 @@ def main():
177177 Session .configure (bind = engine )
178178 session = Session ()
179179
180- # Get the total number of books printed by each publisher
180+ # Get the number of books printed by each publisher
181181 books_by_publisher = get_books_by_publishers (session , ascending = False )
182182 for row in books_by_publisher :
183183 print (f"Publisher: { row .name } , total books: { row .total_books } " )
184184 print ()
185185
186- # Get the total number of authors each publisher publishes
186+ # Get the number of authors each publisher publishes
187187 authors_by_publisher = get_authors_by_publishers (session )
188188 for row in authors_by_publisher :
189189 print (f"Publisher: { row .name } , total authors: { row .total_authors } " )
0 commit comments