forked from Pavel_Durov/python_bot
fix
This commit is contained in:
parent
9171a922d9
commit
bc1231cab1
4
bot.py
4
bot.py
@ -70,7 +70,7 @@ async def ident(message: types.Message):
|
||||
Session = sessionmaker(bind=engine)
|
||||
session = Session()
|
||||
Base = declarative_base()
|
||||
if session.query(user).filter(user.user_id == None):
|
||||
if session.query(user).filter(user.user_id != None):
|
||||
int_table = user(user_id = message.from_user.id, user_fullname = message.from_user.full_name, dick_size = numb)
|
||||
session.add(int_table)
|
||||
session.commit()
|
||||
@ -81,7 +81,7 @@ async def ident(message: types.Message):
|
||||
a.dick_size = (a.dick_size + numb)
|
||||
session.commit() #обновляет запись
|
||||
await bot.send_message(message.chat.id, f'{message.from_user.full_name}, ваш писюн {size_change}\
|
||||
теперь он равен {a.dick_size} см! ')
|
||||
теперь он равен {(a.dick_size + a.dick_size)} см! ')
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user