From 09b7e00e88a2db399ab88b7821aade80e10d3cca Mon Sep 17 00:00:00 2001 From: xtaodada Date: Fri, 25 Mar 2022 00:50:34 +0800 Subject: [PATCH] Fix scheduler bug --- plugins/info.py | 1 + plugins/track.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/info.py b/plugins/info.py index 904104b..5dc5212 100644 --- a/plugins/info.py +++ b/plugins/info.py @@ -28,6 +28,7 @@ vtuber_msg = """ def gen_info_button(data: Vtuber) -> InlineKeyboardMarkup: msg_link = sqlite.get(str(data.room_id), {}).get("msg_link", "https://t.me/DD_YTbs_Live_Tracker") data_ = [[InlineKeyboardButton("详情", url=msg_link), + InlineKeyboardButton("主页", url=data.space_link), InlineKeyboardButton("订阅", url=f"https://t.me/{me.username}?start={data.room_id}"), ]] return InlineKeyboardMarkup(data_) diff --git a/plugins/track.py b/plugins/track.py index 6549109..16591d1 100644 --- a/plugins/track.py +++ b/plugins/track.py @@ -25,7 +25,7 @@ async def send_track_msg(track_msg, no_button=False) -> Message: reply_markup=button) -@scheduler.scheduled_job("cron", minute="*/10", id="0") +@scheduler.scheduled_job("cron", minute="*/10", id="1") async def run_every_10_minute(): await update_data() need_update = compare()