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

This commit is contained in:
Pavel_Duron 2022-11-13 19:21:34 +10:00
parent 14459239f5
commit 80bd88ab5f

2
bot.py
View File

@ -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).first():
if session.query(user).filter(user.user_id == None).all():
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()