Skip to content

Commit cc1a317

Browse files
committed
fix variable name
1 parent 90aadfd commit cc1a317

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flask_rest_jsonapi/resource.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def get(self, *args, **kwargs):
104104
self.before_get(args, kwargs)
105105

106106
qs = QSManager(request.args, self.schema)
107-
object_count, objects = self._data_layer.get_collection(qs, kwargs)
107+
objects_count, objects = self._data_layer.get_collection(qs, kwargs)
108108

109109
schema_kwargs = getattr(self, 'get_schema_kwargs', dict())
110110
schema_kwargs.update({'many': True})
@@ -118,11 +118,11 @@ def get(self, *args, **kwargs):
118118

119119
view_kwargs = request.view_args if getattr(self, 'view_kwargs', None) is True else dict()
120120
add_pagination_links(result,
121-
object_count,
121+
objects_count,
122122
qs,
123123
url_for(self.view, **view_kwargs))
124124

125-
result.update({'meta': {'count': object_count}})
125+
result.update({'meta': {'count': objects_count}})
126126

127127
self.after_get(result)
128128
return result

0 commit comments

Comments
 (0)