summaryrefslogtreecommitdiff
path: root/ATRI/plugins/thesaurus
diff options
context:
space:
mode:
authorLint Action <[email protected]>2023-01-24 15:06:47 +0000
committerLint Action <[email protected]>2023-01-24 15:06:47 +0000
commit87d5802c7ade5061baeb40758756260a9800734d (patch)
tree0f617eb3ea31e023f23269487f3ce73cc263a66b /ATRI/plugins/thesaurus
parent48074fe1b1536ad300633d6238986057714bfc69 (diff)
downloadATRI-87d5802c7ade5061baeb40758756260a9800734d.tar.gz
ATRI-87d5802c7ade5061baeb40758756260a9800734d.tar.bz2
ATRI-87d5802c7ade5061baeb40758756260a9800734d.zip
:rotating_light: 自动进行代码格式化
Diffstat (limited to 'ATRI/plugins/thesaurus')
-rw-r--r--ATRI/plugins/thesaurus/__init__.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/ATRI/plugins/thesaurus/__init__.py b/ATRI/plugins/thesaurus/__init__.py
index f1860c9..813e9d7 100644
--- a/ATRI/plugins/thesaurus/__init__.py
+++ b/ATRI/plugins/thesaurus/__init__.py
@@ -709,9 +709,7 @@ async def _info_normal_get_item_info(
m_type=m_type,
operator=item_info.operator,
operator_id=item_info.operator_id,
- update_time=item_info.update_time.replace(
- tzinfo=tz(timedelta(hours=8))
- ),
+ update_time=item_info.update_time.replace(tzinfo=tz(timedelta(hours=8))),
is_vote="是" if item_info.is_vote else "否",
vote_list=item_info.vote_list,
)
@@ -751,9 +749,7 @@ async def _info_global_get_item_info(_id: str = ArgPlainText("info_global_item_i
m_type=m_type,
operator=item_info.operator,
operator_id=item_info.operator_id,
- update_time=item_info.update_time.replace(
- tzinfo=tz(timedelta(hours=8))
- ),
+ update_time=item_info.update_time.replace(tzinfo=tz(timedelta(hours=8))),
is_vote="是" if item_info.is_vote else "否",
vote_list=item_info.vote_list,
)
@@ -797,9 +793,7 @@ async def _info_vote_get_item_info(
m_type=m_type,
operator=item_info.operator,
operator_id=item_info.operator_id,
- update_time=item_info.update_time.replace(
- tzinfo=tz(timedelta(hours=8))
- ),
+ update_time=item_info.update_time.replace(tzinfo=tz(timedelta(hours=8))),
is_vote="是" if item_info.is_vote else "否",
vote_list=item_info.vote_list,
)