@@ -139,46 +139,31 @@ def get_model_data_reference(self,
139
139
def get (self ,
140
140
entity_id : int ,
141
141
fields : tuple [str , ...] = None ,
142
- options : dict [str , Any ] = None ,
143
- limit : Optional [int ] = None ,
144
- offset : Optional [int ] = None ,
145
- order : Optional [str ] = None ) -> Optional [dict [str , Any ]]:
142
+ options : dict [str , Any ] = None ) -> Optional [dict [str , Any ]]:
146
143
"""
147
144
Get a row from a model using its ID
148
145
149
146
:param entity_id: Object ID to query
150
147
:param fields: Tuple with the fields to include in the response
151
148
:param options: Dictionary with options to use
152
- :param limit: Maximum number of results count
153
- :param offset: Starting record number to fetch the data
154
- :param order: Ordering clause
155
149
:return: Dictionary with the requested fields
156
150
"""
157
151
results = self .get_many (entity_ids = [entity_id ],
158
152
fields = fields ,
159
- options = options ,
160
- limit = limit ,
161
- offset = offset ,
162
- order = order )
153
+ options = options )
163
154
return results [0 ] if results else None
164
155
165
156
def get_many (self ,
166
157
entity_ids : list [int ],
167
158
fields : tuple [str , ...] = None ,
168
- options : dict [str , Any ] = None ,
169
- limit : Optional [int ] = None ,
170
- offset : Optional [int ] = None ,
171
- order : Optional [str ] = None
159
+ options : dict [str , Any ] = None
172
160
) -> Optional [list [dict [str , Any ]]]:
173
161
"""
174
162
Get a row from a model using its ID
175
163
176
164
:param entity_ids: Object IDs to query
177
165
:param fields: Tuple with the fields to include in the response
178
166
:param options: Dictionary with options to use
179
- :param limit: Maximum number of results count
180
- :param offset: Starting record number to fetch the data
181
- :param order: Ordering clause
182
167
:return: List of dictionaries with the requested fields
183
168
"""
184
169
# Set options
@@ -189,13 +174,6 @@ def get_many(self,
189
174
options ['fields' ] = fields
190
175
# Set language for translated fields
191
176
self ._set_options_language (options = options )
192
- # Set pagination
193
- self ._set_pagination (options = options ,
194
- limit = limit ,
195
- offset = offset )
196
- # Set order
197
- self ._set_order_by (options = options ,
198
- order = order )
199
177
# Request data and get results
200
178
results = self .api .do_read_many (entity_ids = entity_ids ,
201
179
options = options )
0 commit comments