fix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pavel_Duron 2022-12-06 22:12:15 +10:00
parent 820e53b678
commit e02089442f

View File

@ -33,12 +33,12 @@ async def up_dick(message: types.Message):
print(diff) print(diff)
print(type(diff)) print(type(diff))
else: else:
a = session.query(user).filter(user.user_id == message.from_user.id).first() # запрос на поиск в таблице a = session.query(user).filter(user.user_id == message.from_user.id).first() # запрос на поиск в таблице
a.dick_size = (a.dick_size + numb) a.dick_size = (a.dick_size + numb)
a.datetimes = datetime.datetime.now() a.datetimes = datetime.datetime.now()
session.commit() #обновляет запись session.commit() #обновляет запись
session.close() session.close()
await bot.send_message(message.chat.id, f'@{message.from_user.username}, ваш писюн {size_change}\n\ await bot.send_message(message.chat.id, f'@{message.from_user.username}, ваш писюн {size_change}\n\
Теперь он равен <b>{a.dick_size}</b> см! ') Теперь он равен <b>{a.dick_size}</b> см! ')