Skip to content

Commit 132ffc6

Browse files
author
Matt Sokoloff
committed
fix bug
1 parent 83a33fa commit 132ffc6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

labelbox/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,6 @@ def _get_all(self, db_object_type, where):
396396
where = not_deleted if where is None else where & not_deleted
397397
query_str, params = query.get_all(db_object_type, where)
398398

399-
print(query_str, params)
400399
return PaginatedCollection(
401400
self, query_str, params,
402401
[utils.camel_case(db_object_type.type_name()) + "s"],

labelbox/pagination.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ def __next__(self):
7878
if self._fetched_all:
7979
raise StopIteration()
8080

81-
self._fetched_pages += 1
82-
8381
results = self.client.execute(self.get_query(),
8482
self.params,
8583
experimental=self.experimental)
84+
self._fetched_pages += 1
85+
8686
page_data = self.get_page_data(results)
8787
self._data.extend(page_data)
8888

0 commit comments

Comments
 (0)