From 1edff4472cfc0cce948c6a96dc8d04c333897945 Mon Sep 17 00:00:00 2001 From: Martin-Zack Mekkaoui Date: Sat, 23 May 2020 14:00:28 -0400 Subject: [PATCH] Fix some typos in README.rst --- README.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.rst b/README.rst index 984a057..8c3b8f2 100644 --- a/README.rst +++ b/README.rst @@ -90,8 +90,8 @@ including joins: query = session.query(Foo).join(Bar) filter_spec = [ - {'model': 'Foo', field': 'name', 'op': '==', 'value': 'name_1'}, - {'model': 'Bar', field': 'count', 'op': '>=', 'value': 5}, + {'model': 'Foo', 'field': 'name', 'op': '==', 'value': 'name_1'}, + {'model': 'Bar', 'field': 'count', 'op': '>=', 'value': 5}, ] filtered_query = apply_filters(query, filter_spec) @@ -108,8 +108,8 @@ blocks is identical: query = session.query(Foo).join(Bar) # join pre-applied to query filter_spec = [ - {'model': 'Foo', field': 'name', 'op': '==', 'value': 'name_1'}, - {'model': 'Bar', field': 'count', 'op': '>=', 'value': 5}, + {'model': 'Foo', 'field': 'name', 'op': '==', 'value': 'name_1'}, + {'model': 'Bar', 'field': 'count', 'op': '>=', 'value': 5}, ] filtered_query = apply_filters(query, filter_spec) @@ -119,7 +119,7 @@ blocks is identical: filter_spec = [ {field': 'name', 'op': '==', 'value': 'name_1'}, - {'model': 'Bar', field': 'count', 'op': '>=', 'value': 5}, + {'model': 'Bar', 'field': 'count', 'op': '>=', 'value': 5}, ] filtered_query = apply_filters(query, filter_spec) @@ -249,8 +249,8 @@ Sort # `query` should be a SQLAlchemy query object sort_spec = [ - {'model': 'Foo', field': 'name', 'direction': 'asc'}, - {'model': 'Bar', field': 'id', 'direction': 'desc'}, + {'model': 'Foo', 'field': 'name', 'direction': 'asc'}, + {'model': 'Bar', 'field': 'id', 'direction': 'desc'}, ] sorted_query = apply_sort(query, sort_spec) @@ -519,4 +519,4 @@ for details. .. _SQLAlchemy: https://www.sqlalchemy.org/ .. _hybrid attribute: https://docs.sqlalchemy.org/en/13/orm/extensions/hybrid.html .. _hybrid property: https://docs.sqlalchemy.org/en/13/orm/extensions/hybrid.html#sqlalchemy.ext.hybrid.hybrid_property -.. _hybrid method: https://docs.sqlalchemy.org/en/13/orm/extensions/hybrid.html#sqlalchemy.ext.hybrid.hybrid_method \ No newline at end of file +.. _hybrid method: https://docs.sqlalchemy.org/en/13/orm/extensions/hybrid.html#sqlalchemy.ext.hybrid.hybrid_method