poll logging level changed

This commit is contained in:
localhost_frssoft 2022-09-07 03:05:18 +03:00
parent 8e3253fd50
commit a949ecd9b6

View File

@ -28,7 +28,7 @@ def create_poll_movies(text=text_create_poll, poll_expires=345600):
formated_poll_options.append(poll_option_string)
poll_status_id = post_status(text, None, formated_poll_options,
poll_expires=poll_expires, attachments=[upload_attachment('src/FMN.png')])
logger.info('Голосовалка создана')
logger.success('Голосовалка создана')
add_state('poll_expires_at', int(time.time()) + poll_expires)
add_state('poll_status_id', poll_status_id['id'])
return poll_status_id
@ -76,7 +76,7 @@ def get_winner_movie(poll_status_id=str):
{win_variant}
'''.replace('\t', '')
logger.warning("Победил " + str(movie))
logger.success("Победил " + str(movie))
post_status(text_winned, attachments=[upload_attachment('src/FMN.png')])
clear_all_states()
reset_poll()