Skip to content

Commit

Permalink
fix: load just one label row for project page (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
frederik-encord authored Jul 11, 2023
1 parent d73982c commit c534e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encord_active/lib/project/project_file_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def data_units(

to_include = DataUnitInclude(label_row=True) if include_label_row else None
with PrismaConnection(self, cache_db=cache_db) as conn:
return conn.dataunit.find_many(where=where, include=to_include)
return conn.dataunit.find_many(where=where, include=to_include, take=1)

def label_rows(self, cache_db: Optional[prisma.Prisma] = None) -> List["prisma.models.LabelRow"]:
with PrismaConnection(self, cache_db=cache_db) as conn:
Expand Down

0 comments on commit c534e34

Please sign in to comment.