добавил рег времени
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pavel_Duron 2022-11-14 00:03:09 +10:00
parent 9feb5f5d9e
commit 1f0be6557b

3
bot.py
View File

@ -73,13 +73,14 @@ async def ident(message: types.Message):
if 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.datetimes = datetime.datetime.now()
session.commit() #обновляет запись
await bot.send_message(message.chat.id, f'{message.from_user.full_name}, ваш писюн {size_change}\
теперь он равен {a.dick_size} см! ')
session.close()
else:
int_table = user(user_id = message.from_user.id, user_fullname = message.from_user.full_name, dick_size = numb)
int_table = user(user_id = message.from_user.id, user_fullname = message.from_user.full_name, dick_size = numb, datetimes = datetime.datetime.now())
session.add(int_table)
session.commit()
await bot.send_message(message.chat.id, f'{message.from_user.full_name}, ваш писюн {size_change}\