summaryrefslogtreecommitdiff
path: root/ATRI/plugins/rss
diff options
context:
space:
mode:
Diffstat (limited to 'ATRI/plugins/rss')
-rw-r--r--ATRI/plugins/rss/rss_mikanan/__init__.py4
-rw-r--r--ATRI/plugins/rss/rss_rsshub/__init__.py8
2 files changed, 7 insertions, 5 deletions
diff --git a/ATRI/plugins/rss/rss_mikanan/__init__.py b/ATRI/plugins/rss/rss_mikanan/__init__.py
index 9991b58..aa5534e 100644
--- a/ATRI/plugins/rss/rss_mikanan/__init__.py
+++ b/ATRI/plugins/rss/rss_mikanan/__init__.py
@@ -163,5 +163,7 @@ async def _():
bot = get_bot()
await bot.send_group_msg(group_id=data.group_id, message=repo)
await sub.update_sub(
- data._id, data.group_id, {"update_time": TimeDealer(m_t, tz(timedelta(hours=8))).to_datetime()}
+ data._id,
+ data.group_id,
+ {"update_time": TimeDealer(m_t, tz(timedelta(hours=8))).to_datetime()},
)
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()},
)