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