def get_by_id(workspace_id): """Return the workspace with the given id. Args: workspace_id Returns: Workspace (obj): Workspace object with the given id """ return Workspace.get_by_id(workspace_id)
def get_by_id_list(list_workspace_id): """Return a list of workspaces with the given id list. Args: list_workspace_id Returns: """ list_workspace = [] for workspace_id in list_workspace_id: list_workspace.append(Workspace.get_by_id(workspace_id)) return list_workspace