From 87d5802c7ade5061baeb40758756260a9800734d Mon Sep 17 00:00:00 2001 From: Lint Action Date: Tue, 24 Jan 2023 15:06:47 +0000 Subject: =?UTF-8?q?:rotating=5Flight:=20=E8=87=AA=E5=8A=A8=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/rss/rss_rsshub/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ATRI/plugins/rss/rss_rsshub') 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()}, ) -- cgit v1.2.3