@@ -850,7 +850,10 @@ def find_one(self, entity_type, filters, fields=None, order=None, filter_operato
850
850
Defaults to ``["id"]``.
851
851
:param int order: Optional list of fields to order the results by. List has the format::
852
852
853
- [{'field_name':'foo', 'direction':'asc'}, {'field_name':'bar', 'direction':'desc'}]
853
+ [
854
+ {'field_name':'foo', 'direction':'asc'},
855
+ {'field_name':'bar', 'direction':'desc'}
856
+ ]
854
857
855
858
Defaults to sorting by ``id`` in ascending order.
856
859
:param str filter_operator: Operator to apply to the filters. Supported values are ``"all"``
@@ -865,7 +868,11 @@ def find_one(self, entity_type, filters, fields=None, order=None, filter_operato
865
868
:param additional_filter_presets: Optional list of presets to further filter the result
866
869
set, list has the form::
867
870
868
- [{"preset_name": <preset_name>, <optional_param1>: <optional_value1>, ... }]
871
+ [{
872
+ "preset_name": <preset_name>,
873
+ <optional_param1>: <optional_value1>,
874
+ ...
875
+ }]
869
876
870
877
Note that these filters are ANDed together and ANDed with the 'filter'
871
878
argument.
@@ -947,7 +954,10 @@ def find(self, entity_type, filters, fields=None, order=None, filter_operator=No
947
954
query. Each dictionary contains the ``field_name`` to order by and the ``direction``
948
955
to sort::
949
956
950
- [{'field_name':'foo', 'direction':'asc'}, {'field_name':'bar', 'direction':'desc'}]
957
+ [
958
+ {'field_name':'foo', 'direction':'asc'},
959
+ {'field_name':'bar', 'direction':'desc'}
960
+ ]
951
961
952
962
Defaults to sorting by ``id`` in ascending order.
953
963
:param str filter_operator: Operator to apply to the filters. Supported values are ``"all"``
@@ -967,7 +977,11 @@ def find(self, entity_type, filters, fields=None, order=None, filter_operator=No
967
977
:param additional_filter_presets: Optional list of presets to further filter the result
968
978
set, list has the form::
969
979
970
- [{"preset_name": <preset_name>, <optional_param1>: <optional_value1>, ... }]
980
+ [{
981
+ "preset_name": <preset_name>,
982
+ <optional_param1>: <optional_value1>,
983
+ ...
984
+ }]
971
985
972
986
Note that these filters are ANDed together and ANDed with the 'filter'
973
987
argument.
0 commit comments