增加21.40的定时任务
This commit is contained in:
parent
6899509ba6
commit
9dbe91a359
@ -15,7 +15,7 @@ from src.entity.visual_list import text_count_by_user
|
||||
def job_count(username, password):
|
||||
logger.info(f'Running job_count for username: {username}')
|
||||
user = get_user_by_username_and_password(username, password)
|
||||
send_message(BOT_TOKEN, COUNT_GROUP_ID, text_count_by_user(user))
|
||||
send_message(BOT_TOKEN, COUNT_GROUP_ID, text_count_by_user(user, get_curr_day()))
|
||||
logger.info(f'Finished job_count for username: {username}')
|
||||
|
||||
|
||||
@ -29,13 +29,13 @@ def query_failed_deposit(username, password):
|
||||
def query_net_win(username, password) -> None:
|
||||
logger.info(f'Running query_net_win for username: {username}')
|
||||
user = get_user_by_username_and_password(username, password)
|
||||
send_message(BOT_TOKEN, COUNT_GROUP_ID, get_net_win_by_user(user,date=get_curr_day()))
|
||||
send_message(BOT_TOKEN, COUNT_GROUP_ID, get_net_win_by_user(user, date=get_curr_day()))
|
||||
logger.info(f'Finished query_net_win for username: {username}')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
logger.info('Starting scheduled tasks')
|
||||
times = ['10:50', '14:40', '17:40', '20:40', '23:59']
|
||||
times = ['10:50', '14:40', '17:40', '20:40', '21:40', '23:59']
|
||||
for time_str in times:
|
||||
schedule.every().day.at(time_str).do(job_count, 'zayac', '123456')
|
||||
schedule.every().day.at(time_str).do(query_net_win, 'zayac', '123456')
|
||||
|
Loading…
Reference in New Issue
Block a user