File tree Expand file tree Collapse file tree 9 files changed +12
-12
lines changed
Expand file tree Collapse file tree 9 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ LABEL org.opencontainers.image.title="darc" \
44 org.opencontainers.image.description="Darkweb Crawler Project" \
55 org.opencontainers.image.url="https://darc.jarryshaw.me/" \
66 org.opencontainers.image.source="https://github.com/JarryShaw/darc" \
7- org.opencontainers.image.version="0.9.1 " \
7+ org.opencontainers.image.version="0.9.2 " \
88 org.opencontainers.image.licenses='BSD 3-Clause "New" or "Revised" License'
99
1010STOPSIGNAL SIGINT
Original file line number Diff line number Diff line change 4040from darc .sites import register as register_sites # pylint: disable=unused-import
4141
4242__all__ = ['darc' ]
43- __version__ = '0.9.1 '
43+ __version__ = '0.9.2 '
Original file line number Diff line number Diff line change 1212
1313"""
1414
15- from typing import TYPE_CHECKING , cast
15+ from typing import TYPE_CHECKING
1616
1717from peewee import DateTimeField , TextField
1818
2121from darc .model .utils import IntEnumField , Proxy
2222
2323if TYPE_CHECKING :
24- from typing import List
24+ from typing import Callable , List
2525
2626 from darc ._compat import datetime
2727 from darc .model .web .hosts import HostsModel
@@ -86,9 +86,9 @@ def since(self) -> 'datetime':
8686
8787 """
8888 if self .alive :
89- filtering = lambda url : cast ( 'HostnameModel' , url ) .alive
89+ filtering = lambda url : url .alive # type: Callable[[URLModel], bool]
9090 else :
91- filtering = lambda url : not cast ( 'HostnameModel' , url ) .alive
91+ filtering = lambda url : not url .alive
9292
9393 return min (* filter (
9494 filtering , self .urls
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ def _get_site(link: 'Link') -> 'Type[BaseSite]':
9090 * :data:`darc.sites.SITEMAP`
9191
9292 """
93- host = link .host .casefold ()
93+ host = ( link .host or '<null>' ) .casefold ()
9494 site = SITEMAP .get (host )
9595 if site is None :
9696 site = DefaultSite
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ LABEL org.opencontainers.image.title="darc" \
1515 org.opencontainers.image.description="Darkweb Crawler Project" \
1616 org.opencontainers.image.url="https://darc.jarryshaw.me/" \
1717 org.opencontainers.image.source="https://github.com/JarryShaw/darc" \
18- org.opencontainers.image.version="0.9.1 " \
18+ org.opencontainers.image.version="0.9.2 " \
1919 org.opencontainers.image.licenses='BSD 3-Clause "New" or "Revised" License'
2020# EXPOSE 9050
2121
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ LABEL org.opencontainers.image.title="darc" \
44 org.opencontainers.image.description="Darkweb Crawler Project" \
55 org.opencontainers.image.url="https://darc.jarryshaw.me/" \
66 org.opencontainers.image.source="https://github.com/JarryShaw/darc" \
7- org.opencontainers.image.version="0.9.1 " \
7+ org.opencontainers.image.version="0.9.2 " \
88 org.opencontainers.image.licenses='BSD 3-Clause "New" or "Revised" License'
99
1010STOPSIGNAL SIGINT
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ LABEL org.opencontainers.image.title="darc" \
1515 org.opencontainers.image.description="Darkweb Crawler Project" \
1616 org.opencontainers.image.url="https://darc.jarryshaw.me/" \
1717 org.opencontainers.image.source="https://github.com/JarryShaw/darc" \
18- org.opencontainers.image.version="0.9.1 " \
18+ org.opencontainers.image.version="0.9.2 " \
1919 org.opencontainers.image.licenses='BSD 3-Clause "New" or "Revised" License'
2020# EXPOSE 9050
2121
Original file line number Diff line number Diff line change 2222author = 'Jarry Shaw'
2323
2424# The full version, including alpha/beta/rc tags
25- release = '0.9.1 '
25+ release = '0.9.2 '
2626
2727
2828# -- General configuration ---------------------------------------------------
Original file line number Diff line number Diff line change 2626version_info = sys .version_info [:2 ]
2727
2828# version string
29- __version__ = '0.9.1 '
29+ __version__ = '0.9.2 '
3030
3131# setup attributes
3232attrs = dict (
You can’t perform that action at this time.
0 commit comments