mirror of
https://git.phreedom.club/localhost_frssoft/FMN_bot.git
synced 2024-11-24 19:10:57 +01:00
do not mix IMDB and KP in one post
This commit is contained in:
parent
81c13c3c96
commit
e86d9829b0
|
@ -113,4 +113,3 @@ def reset_poll():
|
||||||
'''Сброс содержимого предложки-опроса'''
|
'''Сброс содержимого предложки-опроса'''
|
||||||
c.execute("DELETE FROM poll")
|
c.execute("DELETE FROM poll")
|
||||||
conn.commit()
|
conn.commit()
|
||||||
|
|
||||||
|
|
|
@ -108,4 +108,3 @@ def create_tie_breaker(count_tie=1):
|
||||||
else:
|
else:
|
||||||
poll_expires = 4*60*60
|
poll_expires = 4*60*60
|
||||||
tie_poll = create_poll_movies("TIE BREAKER!!!\n\nВыбираем из победителей!", poll_expires)
|
tie_poll = create_poll_movies("TIE BREAKER!!!\n\nВыбираем из победителей!", poll_expires)
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ from loguru import logger
|
||||||
|
|
||||||
states_file = 'fmn_states.json'
|
states_file = 'fmn_states.json'
|
||||||
|
|
||||||
|
|
||||||
class states_stor:
|
class states_stor:
|
||||||
states = None
|
states = None
|
||||||
|
|
||||||
|
|
|
@ -104,6 +104,10 @@ def scan_context_thread():
|
||||||
|
|
||||||
message_writer = []
|
message_writer = []
|
||||||
success = False
|
success = False
|
||||||
|
if parsed_result and parsed_result_imdb:
|
||||||
|
post_status('❌ Не смешивайте IMDB и кинопоиск в одном посте, пожалуйста.', id_st)
|
||||||
|
fail_limit[acct] += 1
|
||||||
|
continue
|
||||||
if parsed_result is not None:
|
if parsed_result is not None:
|
||||||
print(parsed_result)
|
print(parsed_result)
|
||||||
suggested_movies = get_kinopoisk_movie_to_imdb(parsed_result)
|
suggested_movies = get_kinopoisk_movie_to_imdb(parsed_result)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user