Skip to content

data_title_like keyword no longer working for Project.list_label_rows_v2() #951

@abarbadan

Description

@abarbadan
import encord as ecd

from src.common.constants import (
    ENCORD_SSH_KEY_PATH,
)


def main():
    """Builds the COCO files for a given set of videos, then creates a wandb artifact.
    that organizes the files and references to S3, along with the annotations.

    """

    user_client = ecd.EncordUserClient.create_with_ssh_private_key(
        ssh_private_key_path=ENCORD_SSH_KEY_PATH
    )
    project = user_client.get_project(<your_project_here>)

    def _fetch_label_rows(project):
        print(f"Searching for all rows using SQL query")
        rows = project.list_label_rows_v2(
            data_title_like="%",
        )

        print(f"Found {len(rows)} rows")
        return rows
    
    rows =_fetch_label_rows(project)

    
if __name__ == "__main__":
    main()

Output:

Searching for all rows using SQL query
Found 0 rows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions