chore: format
This commit is contained in:
1 parent
9f946dec60
commit
f7e07f3ca1
73 files changed
+1820
-114
No files matched your search
@@ -228,12 +228,7 @@ class FunctionsTable:
|
||||
|
||||
def get_function_list(self, db: Optional[Session] = None) -> list[FunctionUserResponse]:
|
||||
with get_db_context(db) as db:
|
||||
functions = (
|
||||
db.query(Function)
|
||||
.options(defer(Function.content))
|
||||
.order_by(Function.updated_at.desc())
|
||||
.all()
|
||||
)
|
||||
functions = db.query(Function).options(defer(Function.content)).order_by(Function.updated_at.desc()).all()
|
||||
user_ids = list(set(func.user_id for func in functions))
|
||||
|
||||
users = Users.get_users_by_user_ids(user_ids, db=db) if user_ids else []
|
||||
|
||||
Reference in new issue
Block a user