Automatic Scraping of dataset options #9
@@ -48,3 +48,7 @@ def get_request_filters() -> dict:
|
||||
filters["data_sources"] = data_sources
|
||||
|
||||
return filters
|
||||
|
||||
def split_limit(limit: int, n: int) -> list[int]:
|
||||
base, remainder = divmod(limit, n)
|
||||
return [base + (1 if i < remainder else 0) for i in range(n)]
|
||||
|
||||
Reference in New Issue
Block a user