We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a46da3 commit 171ed43Copy full SHA for 171ed43
bioblend/galaxy/folders/__init__.py
@@ -107,14 +107,14 @@ def contents_iter(
107
:rtype: dict
108
:return: A generator for the folder contents
109
"""
110
- total_rows: Optional[int] = None
+ total_rows = sys.maxsize
111
params = {
112
"limit": limit,
113
"offset": 0,
114
"include_deleted": include_deleted,
115
}
116
117
- while total_rows is None or params["offset"] <= total_rows:
+ while params["offset"] <= total_rows:
118
chunk = self._get(id=folder_id, contents=True, params=params)
119
total_rows = chunk["metadata"]["total_rows"]
120
yield from chunk["folder_contents"]
0 commit comments