1
0
Fork 0
mirror of synced 2024-06-22 16:10:54 +12:00

Update fix_duplicate_links_in_index docstring

Co-authored-by: Nick Sweeting <git@sweeting.me>
This commit is contained in:
Cristian Vargas 2020-09-08 09:49:30 -05:00
parent 01fb44fd40
commit 5e9b3099c6

View file

@ -302,7 +302,7 @@ def parse_links_from_source(source_path: str, root_url: Optional[str]=None) -> T
@enforce_types
def fix_duplicate_links_in_index(snapshots: QuerySet, links: Iterable[Link]) -> Iterable[Link]:
"""
Look for urls in the index, and merge them too
Given a list of in-memory Links, dedupe and merge them with any conflicting Snapshots in the DB.
"""
unique_urls: OrderedDict[str, Link] = OrderedDict()