Skip to content

Commit

Permalink
minor bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
JarryShaw committed Jan 4, 2021
1 parent e599828 commit 3d5031c
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LABEL org.opencontainers.image.title="darc" \
org.opencontainers.image.description="Darkweb Crawler Project" \
org.opencontainers.image.url="https://darc.jarryshaw.me/" \
org.opencontainers.image.source="https://github.com/JarryShaw/darc" \
org.opencontainers.image.version="0.9.1" \
org.opencontainers.image.version="0.9.2" \
org.opencontainers.image.licenses='BSD 3-Clause "New" or "Revised" License'

STOPSIGNAL SIGINT
Expand Down
2 changes: 1 addition & 1 deletion darc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
from darc.sites import register as register_sites # pylint: disable=unused-import

__all__ = ['darc']
__version__ = '0.9.1'
__version__ = '0.9.2'
8 changes: 4 additions & 4 deletions darc/model/web/hostname.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"""

from typing import TYPE_CHECKING, cast
from typing import TYPE_CHECKING

from peewee import DateTimeField, TextField

Expand All @@ -21,7 +21,7 @@
from darc.model.utils import IntEnumField, Proxy

if TYPE_CHECKING:
from typing import List
from typing import Callable, List

from darc._compat import datetime
from darc.model.web.hosts import HostsModel
Expand Down Expand Up @@ -86,9 +86,9 @@ def since(self) -> 'datetime':
"""
if self.alive:
filtering = lambda url: cast('HostnameModel', url).alive
filtering = lambda url: url.alive # type: Callable[[URLModel], bool]
else:
filtering = lambda url: not cast('HostnameModel', url).alive
filtering = lambda url: not url.alive

return min(*filter(
filtering, self.urls
Expand Down
2 changes: 1 addition & 1 deletion darc/sites/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _get_site(link: 'Link') -> 'Type[BaseSite]':
* :data:`darc.sites.SITEMAP`
"""
host = link.host.casefold()
host = (link.host or '<null>').casefold()
site = SITEMAP.get(host)
if site is None:
site = DefaultSite
Expand Down
2 changes: 1 addition & 1 deletion debug.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ LABEL org.opencontainers.image.title="darc" \
org.opencontainers.image.description="Darkweb Crawler Project" \
org.opencontainers.image.url="https://darc.jarryshaw.me/" \
org.opencontainers.image.source="https://github.com/JarryShaw/darc" \
org.opencontainers.image.version="0.9.1" \
org.opencontainers.image.version="0.9.2" \
org.opencontainers.image.licenses='BSD 3-Clause "New" or "Revised" License'
#EXPOSE 9050

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LABEL org.opencontainers.image.title="darc" \
org.opencontainers.image.description="Darkweb Crawler Project" \
org.opencontainers.image.url="https://darc.jarryshaw.me/" \
org.opencontainers.image.source="https://github.com/JarryShaw/darc" \
org.opencontainers.image.version="0.9.1" \
org.opencontainers.image.version="0.9.2" \
org.opencontainers.image.licenses='BSD 3-Clause "New" or "Revised" License'

STOPSIGNAL SIGINT
Expand Down
2 changes: 1 addition & 1 deletion docker/debug.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ LABEL org.opencontainers.image.title="darc" \
org.opencontainers.image.description="Darkweb Crawler Project" \
org.opencontainers.image.url="https://darc.jarryshaw.me/" \
org.opencontainers.image.source="https://github.com/JarryShaw/darc" \
org.opencontainers.image.version="0.9.1" \
org.opencontainers.image.version="0.9.2" \
org.opencontainers.image.licenses='BSD 3-Clause "New" or "Revised" License'
#EXPOSE 9050

Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = 'Jarry Shaw'

# The full version, including alpha/beta/rc tags
release = '0.9.1'
release = '0.9.2'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
version_info = sys.version_info[:2]

# version string
__version__ = '0.9.1'
__version__ = '0.9.2'

# setup attributes
attrs = dict(
Expand Down

0 comments on commit 3d5031c

Please sign in to comment.