Skip to content

Commit 3d5031c

Browse files
committed
minor bugfix
1 parent e599828 commit 3d5031c

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

1010
STOPSIGNAL SIGINT

darc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@
4040
from 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'

darc/model/web/hostname.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
"""
1414

15-
from typing import TYPE_CHECKING, cast
15+
from typing import TYPE_CHECKING
1616

1717
from peewee import DateTimeField, TextField
1818

@@ -21,7 +21,7 @@
2121
from darc.model.utils import IntEnumField, Proxy
2222

2323
if 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

darc/sites/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

debug.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

1010
STOPSIGNAL SIGINT

docker/debug.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
author = '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 ---------------------------------------------------

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
version_info = sys.version_info[:2]
2727

2828
# version string
29-
__version__ = '0.9.1'
29+
__version__ = '0.9.2'
3030

3131
# setup attributes
3232
attrs = dict(

0 commit comments

Comments
 (0)