From 6c6b02cff304d726a9b6acb863f9776c794d6cf2 Mon Sep 17 00:00:00 2001 From: KT Date: Mon, 14 Aug 2023 21:34:13 +0800 Subject: [PATCH] feat: Add fields to character trace tree info: - anchor: position of trace tree point. - max_level: max level of trace tree point. - parent: preceding point of trace tree point. --- mihomo/models/combat.py | 9 +++++++++ pyproject.toml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/mihomo/models/combat.py b/mihomo/models/combat.py index ba254806..d2e0f0b3 100644 --- a/mihomo/models/combat.py +++ b/mihomo/models/combat.py @@ -92,12 +92,21 @@ class TraceTreeNode(BaseModel): Attributes: - id (`int`): The ID of the trace. - level (`int`): The level of the trace. + - max_level (`int`): The max level of the trace. - icon (`str`): The icon of the trace. + - anchor (`str`): The position of the trace tree node. + - parent (`int` | `None`): The preceding node id of trace. """ id: int """The ID of the trace""" level: int """The level of the trace""" + max_level: int + """The max level of the trace""" icon: str """The icon of the trace""" + anchor: str + """The position of the trace tree node""" + parent: int | None = None + """The preceding node id of trace""" diff --git a/pyproject.toml b/pyproject.toml index 1860f43f..a6d4ed8f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "mihomo" -version = "1.1.5" +version = "1.1.6" authors = [ { name="KT", email="xns77477@gmail.com" }, ]