From 5f81e8c810eff2099ec15f1bb3a9ffd63ce64f17 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Mon, 24 Jun 2024 23:28:23 +0800 Subject: [PATCH] :bug: Fix empty data in starrail challenge boss floor --- pdm.lock | 32 ++++++++++++------------ pyproject.toml | 2 +- requirements.txt | 8 +++--- resources/starrail/abyss/floor_boss.html | 4 +-- 4 files changed, 22 insertions(+), 24 deletions(-) diff --git a/pdm.lock b/pdm.lock index 0e4edde..62f1f6f 100644 --- a/pdm.lock +++ b/pdm.lock @@ -5,7 +5,7 @@ groups = ["default", "pyro", "test"] strategy = ["cross_platform", "inherit_metadata"] lock_version = "4.4.1" -content_hash = "sha256:c68c52f854841d063bb4df246f1168213ff9943640be99edb5897a37d99ace8d" +content_hash = "sha256:7c20ef5aa9a946f2b922539de88fe7d316e2937a79c4e6f7c2a383316dca30c7" [[package]] name = "aiocsv" @@ -42,13 +42,13 @@ files = [ [[package]] name = "aiofiles" -version = "23.2.1" -requires_python = ">=3.7" +version = "24.1.0" +requires_python = ">=3.8" summary = "File support for asyncio." groups = ["default"] files = [ - {file = "aiofiles-23.2.1-py3-none-any.whl", hash = "sha256:19297512c647d4b27a2cf7c34caa7e405c0d60b5560618a29a9fe027b18b0107"}, - {file = "aiofiles-23.2.1.tar.gz", hash = "sha256:84ec2218d8419404abcb9f0c02df3f34c6e0a68ed41072acfb1cef5cbc29051a"}, + {file = "aiofiles-24.1.0-py3-none-any.whl", hash = "sha256:b4ec55f4195e3eb5d7abd1bf7e061763e864dd4954231fb8539a0ef8bb8260e5"}, + {file = "aiofiles-24.1.0.tar.gz", hash = "sha256:22a075c9e5a3810f0c2e48f3008c94d68c65d763b9b03857924c99e57355166c"}, ] [[package]] @@ -1038,7 +1038,7 @@ files = [ [[package]] name = "importlib-metadata" -version = "7.2.0" +version = "7.2.1" requires_python = ">=3.8" summary = "Read metadata from Python packages" groups = ["default"] @@ -1047,8 +1047,8 @@ dependencies = [ "zipp>=0.5", ] files = [ - {file = "importlib_metadata-7.2.0-py3-none-any.whl", hash = "sha256:04e4aad329b8b948a5711d394fa8759cb80f009225441b4f2a02bd4d8e5f426c"}, - {file = "importlib_metadata-7.2.0.tar.gz", hash = "sha256:3ff4519071ed42740522d494d04819b666541b9752c43012f85afb2cc220fcc6"}, + {file = "importlib_metadata-7.2.1-py3-none-any.whl", hash = "sha256:ffef94b0b66046dd8ea2d619b701fe978d9264d38f3998bc4c27ec3b146a87c8"}, + {file = "importlib_metadata-7.2.1.tar.gz", hash = "sha256:509ecb2ab77071db5137c655e24ceb3eee66e7bbc6574165d0d114d9fc4bbe68"}, ] [[package]] @@ -1068,7 +1068,7 @@ files = [ [[package]] name = "influxdb-client" -version = "1.43.0" +version = "1.44.0" requires_python = ">=3.7" summary = "InfluxDB 2.0 Python client library" groups = ["default"] @@ -1080,13 +1080,13 @@ dependencies = [ "urllib3>=1.26.0", ] files = [ - {file = "influxdb_client-1.43.0-py3-none-any.whl", hash = "sha256:f079e63018f521024118bc0141b6403c65506711e2e6e93500f8e69f1675dc38"}, - {file = "influxdb_client-1.43.0.tar.gz", hash = "sha256:ae2614d891baed52c0ae8f6194a04ee5b1c6422f6061318a3639fe63b7671b25"}, + {file = "influxdb_client-1.44.0-py3-none-any.whl", hash = "sha256:e4c1ac9c9925c4693d63e988e22f65d2ddc1867f8910813b7f4721633175f2a0"}, + {file = "influxdb_client-1.44.0.tar.gz", hash = "sha256:da9bc0cc49de4a0ac844d833c1efa65227ec5a2254e63cdbe07b5d532c0c37f8"}, ] [[package]] name = "influxdb-client" -version = "1.43.0" +version = "1.44.0" extras = ["async", "ciso"] requires_python = ">=3.7" summary = "InfluxDB 2.0 Python client library" @@ -1095,11 +1095,11 @@ dependencies = [ "aiocsv>=1.2.2", "aiohttp>=3.8.1", "ciso8601>=2.1.1", - "influxdb-client==1.43.0", + "influxdb-client==1.44.0", ] files = [ - {file = "influxdb_client-1.43.0-py3-none-any.whl", hash = "sha256:f079e63018f521024118bc0141b6403c65506711e2e6e93500f8e69f1675dc38"}, - {file = "influxdb_client-1.43.0.tar.gz", hash = "sha256:ae2614d891baed52c0ae8f6194a04ee5b1c6422f6061318a3639fe63b7671b25"}, + {file = "influxdb_client-1.44.0-py3-none-any.whl", hash = "sha256:e4c1ac9c9925c4693d63e988e22f65d2ddc1867f8910813b7f4721633175f2a0"}, + {file = "influxdb_client-1.44.0.tar.gz", hash = "sha256:da9bc0cc49de4a0ac844d833c1efa65227ec5a2254e63cdbe07b5d532c0c37f8"}, ] [[package]] @@ -2197,7 +2197,7 @@ name = "simnet" version = "0.1.22" requires_python = "<4.0,>=3.8" git = "https://github.com/PaiGramTeam/SIMNet" -revision = "6c2c41239e0bfa177dee1ab91d63e04382cb29ab" +revision = "277a33321a20909541b46bf4ecf794fd47e19fb1" summary = "Modern API wrapper for Genshin Impact & Honkai: Star Rail built on asyncio and pydantic." groups = ["default"] dependencies = [ diff --git a/pyproject.toml b/pyproject.toml index ec9df90..8d0f8df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ dependencies = [ "redis<6.0.0,>=5.0.1", "beautifulsoup4<5.0.0,>=4.12.1", "asyncmy<1.0.0,>=0.2.9", - "aiofiles<24.0.0,>=23.2.1", + "aiofiles<25.0.0,>=24.1.0", "python-dotenv<2.0.0,>=1.0.0", "alembic<2.0.0,>=1.13.0", "black<25.0.0,>=24.1.1", diff --git a/requirements.txt b/requirements.txt index bd47792..6927611 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ # Please do not edit it manually. aiocsv==1.3.2 -aiofiles==23.2.1 +aiofiles==24.1.0 aiohttp==3.9.5 aiolimiter==1.1.0 aiosignal==1.3.1 @@ -43,9 +43,9 @@ httpcore==1.0.5 httptools==0.6.1 httpx==0.27.0 idna==3.7 -importlib-metadata==7.2.0; python_version < "3.9" +importlib-metadata==7.2.1; python_version < "3.9" importlib-resources==6.4.0; python_version < "3.9" -influxdb-client==1.43.0 +influxdb-client==1.44.0 iniconfig==2.0.0 jinja2==3.1.4 lxml==5.2.2 @@ -87,7 +87,7 @@ rich==13.7.1 sentry-sdk==2.6.0 setuptools==70.1.0 shellingham==1.5.4 -simnet @ git+https://github.com/PaiGramTeam/SIMNet@6c2c41239e0bfa177dee1ab91d63e04382cb29ab +simnet @ git+https://github.com/PaiGramTeam/SIMNet@277a33321a20909541b46bf4ecf794fd47e19fb1 six==1.16.0 smmap==5.0.1 sniffio==1.3.1 diff --git a/resources/starrail/abyss/floor_boss.html b/resources/starrail/abyss/floor_boss.html index 335b929..295a097 100644 --- a/resources/starrail/abyss/floor_boss.html +++ b/resources/starrail/abyss/floor_boss.html @@ -56,7 +56,7 @@
- {% for node in floor_nodes %} + {% for node in floor_nodes if node.has_data %}
{% for character in node.avatars %}
@@ -75,7 +75,6 @@
Lv.{{ character.level }}
{% endfor %} - {% if loop.length > 1 %}
节点{{ loop.index }}

@@ -87,7 +86,6 @@
未击败首领
{% endif %}
- {% endif %}