тест ывода информации из бд
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7d00f9d22f
commit
147f5c5096
4
bot.py
4
bot.py
@ -70,14 +70,14 @@ async def ident(message: types.Message):
|
||||
Session = sessionmaker(bind=engine)
|
||||
session = Session()
|
||||
Base = declarative_base()
|
||||
int_table = user(user_id = message.from_user.id, user_fullname = message.from_user.full_name, dick_size = (numb)) #импортирую юзер из sqdb
|
||||
int_table = user(user_id = message.from_user.id, user_fullname = message.from_user.full_name, dick_size = numb) #импортирую юзер из sqdb
|
||||
session.add(int_table)
|
||||
session.commit()
|
||||
#обновление
|
||||
# dick_update = session.query(user).filter_by(user.user_id = message.from_user.id).update({'dick_size': user.dick_size + numb})
|
||||
# session.add(dick_update)
|
||||
# session.commit()
|
||||
last_size = session.query(user).filter_by(user_id = message.from_user.id).select_from(dick_size).one()
|
||||
last_size = session.query(user).filter_by(user_id = message.from_user.id).select_from(dick_size = '').one()
|
||||
|
||||
await bot.send_message(message.chat.id, f'{message.from_user.full_name}, ваш писюн {size_change}\
|
||||
Теперь он равен {last_size} пока еще хуй знает сколько сантиметров ')
|
||||
|
Loading…
Reference in New Issue
Block a user