mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-23 03:06:55 -04:00
Update fix_duplicate_links_in_index docstring
Co-authored-by: Nick Sweeting <git@sweeting.me>
This commit is contained in:
parent
01fb44fd40
commit
5e9b3099c6
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue