Fix indentation

This commit is contained in:
Luke Murphy 2020-03-01 16:39:14 +00:00
parent dcfb1fd4d2
commit a54dd506ab
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 5 additions and 5 deletions

View File

@ -74,7 +74,7 @@ All books without a publisher
.. code-block:: python
(session.query(Book)
.filter(Book.publishers == None))
.filter(Book.publishers == None))
List of all tags that contain some pattern
------------------------------------------
@ -82,7 +82,7 @@ List of all tags that contain some pattern
.. code-block:: python
(session.query(Tag)
.filter(Tag.name.contains("humanities")))
.filter(Tag.name.contains("humanities")))
Adding a new tag to a book
--------------------------
@ -105,6 +105,6 @@ All books with multiple authors
from sqlalchemy.sql.expression import func
(session.query(Book)
.join(Book.authors)
.group_by(Book)
.having(func.count(Author.id) > 1))
.join(Book.authors)
.group_by(Book)
.having(func.count(Author.id) > 1))