Commit 3e6cb3b8 authored by Christophe Benz's avatar Christophe Benz
Browse files

Add missing docstring to public method

parent 2dda595d
Pipeline #352407 failed with stage
in 5 minutes and 32 seconds
......@@ -752,6 +752,14 @@ class FileSystemStorage(Storage):
Iterator[tuple[Series, SeriesJsonLinesOffset]],
Iterator[Union[tuple[Series, SeriesJsonLinesOffset], DBnomicsDataModelError]],
]:
"""Yield series from `series.jsonl`.
First try to find series by seeking in the JSON lines file using offsets
previously indexed in Solr.
Then, if any series remains (meaning Solr is not up to date), find them
by scanning the JSON lines file.
"""
series_jsonl_path = self._get_series_jsonl_path(dataset_code)
if not series_jsonl_path.is_file():
return
......@@ -817,14 +825,6 @@ class FileSystemStorage(Storage):
Iterator[tuple[dict, SeriesJsonLinesOffset]],
Iterator[Union[Iterator[tuple[dict, SeriesJsonLinesOffset]], DBnomicsDataModelError]],
]:
"""Yield series `dict`s from `series.jsonl`.
First try to find series by seeking in the JSON lines file using offsets
previously indexed in Solr.
Then, if any series remains (meaning Solr is not up to date), find them
by scanning the JSON lines file.
"""
series_jsonl_path = self._get_series_jsonl_path(dataset_code)
remaining_series_codes = None if series_codes is None else set(series_codes)
......
Supports Markdown
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