You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Fetch the user's stashed files. PRECONDITION: You must be logged in for this to work
250
+
251
+
Args:
252
+
wiki (Wiki): The Wiki object to use
253
+
limit (Union[int, str], optional): The maxmimum number of elements to fetch each iteration. Defaults to 1.
254
+
255
+
Returns:
256
+
Generator[list[tuple[str, int]], None, None]: A `Generator` which yields a `list` of 3-`tuple` where each tuple is of the form (file key, file size, status). Known values for status: `"finished"`, `"chunks"`
ifchunk_count==total_chunks-1: # a poorly configured MediaWiki installation may fail to acknowledge the final chunk, but we can attempt recovery on our end
236
+
foriinrange(max_retries):
237
+
log.info("%s: Attempting to unmangle filekey, '%s'. Attempt %d/%d, but first sleeping 30s...", wiki, pl["filekey"], i+1, max_retries)
"""Fetch the user's stashed files. PRECONDITION: You must be logged in for this to work
702
+
703
+
Returns:
704
+
list[tuple[str, int]]: a `list` of 3-`tuple` where each tuple is of the form (file key, file size, status). Known values for status: `"finished"`, `"chunks"`
0 commit comments