Skip to content

Commit 152013e

Browse files
committed
Merge pull request #189 from gerasim13/pypy
Pypy compatibility patch.
2 parents 7b06b40 + 90e3365 commit 152013e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_mongoengine/operation_tracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def _unpack_response(response, *args, **kwargs):
4747
*args,
4848
**kwargs
4949
)
50-
response_sizes.append(sys.getsizeof(response) / 1024.0)
50+
response_sizes.append(sys.getsizeof(response, len(response)) / 1024.0)
5151
return result
5252

5353
# Wrap Cursor.insert for getting queries

0 commit comments

Comments
 (0)