New year picture FMN and default format webp (compact)

This commit is contained in:
localhost_frssoft 2022-12-17 19:23:19 +03:00
parent b166016df8
commit 885bfb5a53
4 changed files with 3 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 788 KiB

BIN
src/FMN.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

View File

@ -38,7 +38,7 @@ def create_poll_movies(text=text_create_poll(), poll_expires=345600):
attaches = []
try:
attaches = [upload_attachment('src/FMN.png')]
attaches = [upload_attachment('src/FMN.webp')]
except Exception as E:
logger.error(f"attachements can't do upload: {E}")
@ -92,7 +92,7 @@ def get_winner_movie(poll_status_id=str):
text_winned = f"{expired_poll_count} голосование завершилось! Победил вариант предложенный @{acct_suggested}:\n{win_variant}"
logger.success("Победил " + str(movie))
post_status(text_winned, attachments=[upload_attachment('src/FMN.png')])
post_status(text_winned, attachments=[upload_attachment('src/FMN.webp')])
write_states()
reset_poll()

View File

@ -51,7 +51,7 @@ def get_control_mention():
next_movie_watching = time_now + next_movie_watching_delta
max_mute_time = time.mktime(time.struct_time(next_movie_watching.timetuple())) # Глушение до следующего сеанса FMN.
next_movie_watching = next_movie_watching.strftime('%d.%m.%Y')
post_status(start_collect_movies_text(movies_accept_time, next_movie_watching), st_id, attachments=[upload_attachment('src/FMN.png')])
post_status(start_collect_movies_text(movies_accept_time, next_movie_watching), st_id, attachments=[upload_attachment('src/FMN.webp')])
time.sleep(0.2)
mark_as_read_notification(i['id'])