This commit is contained in:
parent
ec8c67a23b
commit
89ccbf1810
12
sqdb.py
12
sqdb.py
@ -24,16 +24,12 @@ class user(Base):
|
|||||||
datetimes = (Column(DateTime))
|
datetimes = (Column(DateTime))
|
||||||
chat_id = Column(BIGINT)
|
chat_id = Column(BIGINT)
|
||||||
|
|
||||||
def __init__(self, user_id, user_fullname, dick_size, datetimes, chat_id):
|
|
||||||
self.user_id = user_id
|
|
||||||
self.user_fullname = user_fullname
|
|
||||||
self.dick_size = dick_size
|
|
||||||
self.datetimes = datetimes
|
|
||||||
self.chat_id = chat_id
|
|
||||||
|
|
||||||
print(user.chat_id)
|
|
||||||
|
|
||||||
# session.close()
|
|
||||||
|
|
||||||
|
session.close()
|
||||||
|
engine.dispose()
|
||||||
# top = session.query(user.user_fullname, user.dick_size).order_by(user.dick_size.desc()).filter(user.chat_id == user.chat_id).limit(10).all()
|
# top = session.query(user.user_fullname, user.dick_size).order_by(user.dick_size.desc()).filter(user.chat_id == user.chat_id).limit(10).all()
|
||||||
# print(top)
|
# print(top)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user