mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot
synced 2024-12-22 21:53:34 +02:00
Fixed poll ends string
This commit is contained in:
parent
d098506a32
commit
ea80e549f4
1 changed files with 3 additions and 8 deletions
|
@ -63,18 +63,13 @@ def get_winner_movie(poll_status_id=str):
|
|||
movie = winned_movies[0]
|
||||
mark_as_watched_movie(movie[1], movie[2], movie[3])
|
||||
|
||||
acct_suggested = movie[0]
|
||||
orig_name = movie[1]
|
||||
ru_name = movie[2]
|
||||
year = movie[3]
|
||||
win_variant = f"{orig_name} / {ru_name}, {year}"
|
||||
acct_suggested, orig_name, ru_name, year = movie
|
||||
win_variant = f"{ru_name} / {orig_name}, {year}"
|
||||
if ru_name is None:
|
||||
win_variant = f"{orig_name}, {year}"
|
||||
if orig_name is None:
|
||||
win_variant = f"{ru_name}, {year}"
|
||||
text_winned = f'''Голосование завершилось! Победил вариант предложенный @{acct_suggested}:
|
||||
{win_variant}
|
||||
'''.replace('\t', '')
|
||||
text_winned = f"Голосование завершилось! Победил вариант предложенный @{acct_suggested}:\n{win_variant}"
|
||||
|
||||
logger.success("Победил " + str(movie))
|
||||
post_status(text_winned, attachments=[upload_attachment('src/FMN.png')])
|
||||
|
|
Loading…
Reference in a new issue