Attempt fix wrong counter again

This commit is contained in:
localhost_frssoft 2022-11-01 17:56:07 +03:00
parent 3ec64dc934
commit aca05b4ffa
2 changed files with 2 additions and 1 deletions

View file

@ -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())

View file

@ -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 объявляю открытым!
Ставки сделаны, ставок больше нет