summaryrefslogtreecommitdiff
path: root/ATRI/plugins/rss/rss_rsshub
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/rss/rss_rsshub
parent48074fe1b1536ad300633d6238986057714bfc69 (diff)
downloadATRI-87d5802c7ade5061baeb40758756260a9800734d.tar.gz
ATRI-87d5802c7ade5061baeb40758756260a9800734d.tar.bz2
ATRI-87d5802c7ade5061baeb40758756260a9800734d.zip
:rotating_light: 自动进行代码格式化
Diffstat (limited to 'ATRI/plugins/rss/rss_rsshub')
-rw-r--r--ATRI/plugins/rss/rss_rsshub/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ATRI/plugins/rss/rss_rsshub/__init__.py b/ATRI/plugins/rss/rss_rsshub/__init__.py
index 5489fee..5f8cafd 100644
--- a/ATRI/plugins/rss/rss_rsshub/__init__.py
+++ b/ATRI/plugins/rss/rss_rsshub/__init__.py
@@ -97,9 +97,7 @@ async def _(event: GroupMessageEvent):
subs = list()
for i in query_result:
- t = i.update_time.replace(
- tzinfo=tz(timedelta(hours=8))
- )
+ t = i.update_time.replace(tzinfo=tz(timedelta(hours=8)))
subs.append([t, i.title])
output = "本群的 RSSHub 订阅列表如下~\n" + tabulate(
@@ -165,5 +163,7 @@ async def _():
bot = get_bot()
await bot.send_group_msg(group_id=m.group_id, message=repo)
await sub.update_sub(
- m._id, m.group_id, {"update_time": TimeDealer(ts_t, tz(timedelta(hours=0))).to_datetime()}
+ m._id,
+ m.group_id,
+ {"update_time": TimeDealer(ts_t, tz(timedelta(hours=0))).to_datetime()},
)