Skip to content

Commit a4b0877

Browse files
committed
VkTools.get_all: fix limit_count
1 parent 452e29f commit a4b0877

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vk_api/vk_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def get_all(self, method, values=None, max_count=200, key='items',
5656

5757
items += response['items']
5858

59-
if response['end'] or len(items) >= limit_count:
59+
if response['end'] or (limit_count and len(items) >= limit_count):
6060
break
6161

6262
offset = response['offset']

0 commit comments

Comments
 (0)