mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-19 01:15:11 -04:00
Use a more appropriate coding style from @pirate.
Co-Authored-By: f0086 <mail@aaron-fischer.net>
This commit is contained in:
parent
ebc327bb89
commit
a2f5fa8ba6
1 changed files with 2 additions and 2 deletions
|
@ -80,8 +80,8 @@ def new_links(all_links, existing_links):
|
||||||
This is used to determine which links are new and not indexed jet. Set the
|
This is used to determine which links are new and not indexed jet. Set the
|
||||||
ONLY_NEW environment variable to activate this filter mechanism.
|
ONLY_NEW environment variable to activate this filter mechanism.
|
||||||
"""
|
"""
|
||||||
existing_urls = list(map(lambda l: l['url'], existing_links))
|
existing_urls = {link['url'] for link in existing_links}
|
||||||
return list(filter(lambda l: l['url'] not in existing_urls, all_links))
|
return [link for link in all_links if link['url'] not in existing_urls]
|
||||||
|
|
||||||
def archivable_links(links):
|
def archivable_links(links):
|
||||||
"""remove chrome://, about:// or other schemed links that cant be archived"""
|
"""remove chrome://, about:// or other schemed links that cant be archived"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue