Commit ed4989ff authored by Christophe Benz's avatar Christophe Benz
Browse files

Rename function

parent 398637ff
......@@ -106,10 +106,12 @@ class Releases(BaseModel):
def resolve_latest_release(self, dataset_code: str) -> str:
"""Resolve latest release of a dataset.
def resolve_release_code(self, dataset_code: str) -> str:
"""Resolve the release code of a dataset.
If dataset_code references the "latest" release, replace the release code by the actual latest one.
Some release codes are reserved, like "latest" that references an actual release code.
If dataset_code references a reserved release code, replace it by the actual one.
dataset_code_prefix, release_code = parse_dataset_release(dataset_code)
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