Fix scheduler bug
This commit is contained in:
parent
a851076a44
commit
09b7e00e88
@ -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_)
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user