diff --git a/lookyloo/capturecache.py b/lookyloo/capturecache.py index 5aac1c5..19b4270 100644 --- a/lookyloo/capturecache.py +++ b/lookyloo/capturecache.py @@ -290,7 +290,8 @@ class CapturesIndex(Mapping): cache['parent'] = f.read().strip() p = self.redis.pipeline() - if capture_dir.is_relative_to(get_captures_dir()): + # if capture_dir.is_relative_to(get_captures_dir()): # Requires python 3.9 + if str(capture_dir).startswith(str(get_captures_dir())): p.hset('lookup_dirs', uuid, str(capture_dir)) else: p.hset('lookup_dirs_archived', uuid, str(capture_dir)) diff --git a/poetry.lock b/poetry.lock index 1397b89..3a37e10 100644 --- a/poetry.lock +++ b/poetry.lock @@ -544,7 +544,7 @@ i18n = ["Babel (>=2.7)"] [[package]] name = "jsonschema" -version = "4.7.2" +version = "4.8.0" description = "An implementation of JSON Schema validation for Python" category = "main" optional = false @@ -1168,7 +1168,7 @@ python-versions = "*" [[package]] name = "types-pillow" -version = "9.2.0" +version = "9.2.1" description = "Typing stubs for Pillow" category = "dev" optional = false @@ -1391,7 +1391,7 @@ misp = ["python-magic", "pydeep2"] [metadata] lock-version = "1.1" python-versions = ">=3.8,<3.11" -content-hash = "7e09622171c396fb616322d9f73dea9433d2b479137f13ec40abc9666c71a92e" +content-hash = "73b3a7e37ff853a7edf8632744c175dc933552cfcb7b6fcd9c4bd5ebc1194801" [metadata.files] aiohttp = [ @@ -1828,8 +1828,8 @@ jinja2 = [ {file = "Jinja2-3.1.2.tar.gz", hash = "sha256:31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852"}, ] jsonschema = [ - {file = "jsonschema-4.7.2-py3-none-any.whl", hash = "sha256:c7448a421b25e424fccfceea86b4e3a8672b4436e1988ccbde92c80828d4f085"}, - {file = "jsonschema-4.7.2.tar.gz", hash = "sha256:73764f461d61eb97a057c929368610a134d1d1fffd858acfe88864ee94f1f1d3"}, + {file = "jsonschema-4.8.0-py3-none-any.whl", hash = "sha256:58bb77251318cef5e1179e33dd6e7a008a3c6c638487ab4d943c2f370cc31a1a"}, + {file = "jsonschema-4.8.0.tar.gz", hash = "sha256:c1d410e379b210ba903bee6adf3fce6d5204cea4c2b622d63f914d2dbfef0993"}, ] lief = [ {file = "lief-0.12.1-cp310-cp310-macosx_10_14_x86_64.whl", hash = "sha256:4fbbc9d520de87ac22210c62d22a9b088e5460f9a028741311e6f68ef8877ddd"}, @@ -2412,7 +2412,10 @@ types-markupsafe = [ {file = "types-MarkupSafe-1.1.10.tar.gz", hash = "sha256:85b3a872683d02aea3a5ac2a8ef590193c344092032f58457287fbf8e06711b1"}, {file = "types_MarkupSafe-1.1.10-py3-none-any.whl", hash = "sha256:ca2bee0f4faafc45250602567ef38d533e877d2ddca13003b319c551ff5b3cc5"}, ] -types-pillow = [] +types-pillow = [ + {file = "types-Pillow-9.2.1.tar.gz", hash = "sha256:9781104ee2176f680576523fa2a2b83b134957aec6f4d62582cc9e74c93a60b4"}, + {file = "types_Pillow-9.2.1-py3-none-any.whl", hash = "sha256:d63743ef631e47f8d8669590ea976162321a9a7604588b424b6306533453fb63"}, +] types-pkg-resources = [ {file = "types-pkg_resources-0.1.3.tar.gz", hash = "sha256:834a9b8d3dbea343562fd99d5d3359a726f6bf9d3733bccd2b4f3096fbab9dae"}, {file = "types_pkg_resources-0.1.3-py2.py3-none-any.whl", hash = "sha256:0cb9972cee992249f93fff1a491bf2dc3ce674e5a1926e27d4f0866f7d9b6d9c"}, diff --git a/pyproject.toml b/pyproject.toml index 206b4e4..5c03fef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -82,7 +82,7 @@ types-Deprecated = "^1.2.9" types-python-dateutil = "^2.8.19" types-beautifulsoup4 = "^4.11.4" types-setuptools = "^63.2.2" -types-Pillow = "^9.2.0" +types-Pillow = "^9.2.1" [build-system] requires = ["poetry_core>=1.0", "setuptools"]