Fix scheduler bug

This commit is contained in:
xtaodada 2022-03-25 00:50:34 +08:00
parent a851076a44
commit 09b7e00e88
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 2 additions and 1 deletions

View File

@ -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_)

View File

@ -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()