mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot.git
synced 2024-12-23 12:19:47 +00:00
Attempt fix wrong counter again
This commit is contained in:
parent
3ec64dc934
commit
aca05b4ffa
@ -38,6 +38,7 @@ def get_already_watched(original_name=None, ru_name=None, year=None):
|
||||
|
||||
|
||||
def get_count_all_watched_movies():
|
||||
conn.commit() # May be fix wrong count
|
||||
return len(c.execute('SELECT * FROM watched_movies').fetchall())
|
||||
|
||||
|
||||
|
@ -7,7 +7,7 @@ import time
|
||||
|
||||
|
||||
def text_create_poll():
|
||||
count_poll = get_count_all_watched_movies() + 1
|
||||
count_poll = get_count_all_watched_movies()
|
||||
text_poll = f'''Друзья, {count_poll} голосование за следующий Fediverse Movie Night объявляю открытым!
|
||||
|
||||
Ставки сделаны, ставок больше нет
|
||||
|
Loading…
Reference in New Issue
Block a user