mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-28 08:39:54 +02:00
Update fix_duplicate_links_in_index docstring
Co-authored-by: Nick Sweeting <git@sweeting.me>
This commit is contained in:
@@ -302,7 +302,7 @@ def parse_links_from_source(source_path: str, root_url: Optional[str]=None) -> T
|
|||||||
@enforce_types
|
@enforce_types
|
||||||
def fix_duplicate_links_in_index(snapshots: QuerySet, links: Iterable[Link]) -> Iterable[Link]:
|
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()
|
unique_urls: OrderedDict[str, Link] = OrderedDict()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user