Commit 43636abb authored by Cyril Matthey-Doret's avatar Cyril Matthey-Doret
Browse files

fix duplicated function name

parent 022b8e70
......@@ -28,7 +28,7 @@ def validate_iso_date(date: str) -> str:
raise ValueError("Deadline must be in ISO-8601 format.")
def collect_forks(project_url: str, header=Dict[str, str]) -> List[Dict]:
def request_forks(project_url: str, header=Dict[str, str]) -> List[Dict]:
"""Retrieve the metadata from all forks of input project"""
base, namespace, repo = parse_repo_url(project_url)
upstream_id = get_project_id(project_url, header)
......@@ -153,7 +153,7 @@ def collect_forks(repo_url, token_path, deadline=None, group_only=False):
# Get metadata of all forks from input project
header = {"PRIVATE-TOKEN": token}
forks = collect_forks(repo_url, header)
forks = request_forks(repo_url, header)
# Only keep those which belong to a group
if group_only:
forks = filter_group_forks(forks)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment