限制人
This commit is contained in:
parent
8cdc9f7f06
commit
a18e2feb56
|
@ -104,5 +104,5 @@ def get_user_by_departments(db: Session, departments: []):
|
|||
def get_user_by_department_type(db: Session, department_type: str):
|
||||
departments = [item.id for item in db.query(Department).filter_by(type=department_type)]
|
||||
users = get_user_by_departments(db, departments)
|
||||
users = [get_full_user_info(db, user['email']) for user in users if user.name!='邢军']
|
||||
users = [get_full_user_info(db, user['email']) for user in users if user["name"]!='邢军']
|
||||
return users
|
||||
|
|
Loading…
Reference in New Issue