Version 1.0

This commit is contained in:
Egor Deev 2021-09-14 16:20:50 +07:00 committed by GitHub
parent fd21bbcb62
commit 8bcb131267
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,16 +33,6 @@ def times():
return f'{itg} дней)'
def autozak(name):
num = str(len(name))
if int(num[-1]) == 1:
return f'{num} минута.'
elif 1 < int(num[-1]) < 5:
return f'{num} минуты.'
else:
return f'{num} минут.'
def update_stat(var, message, main=False):
db.statistics_group(message.chat.id, var)
db.user_statistic(message.from_user.id, message.chat.id, var)