We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 452e29f commit a4b0877Copy full SHA for a4b0877
1 file changed
vk_api/vk_tools.py
@@ -56,7 +56,7 @@ def get_all(self, method, values=None, max_count=200, key='items',
56
57
items += response['items']
58
59
- if response['end'] or len(items) >= limit_count:
+ if response['end'] or (limit_count and len(items) >= limit_count):
60
break
61
62
offset = response['offset']
0 commit comments