Skip to content

Commit 658c618

Browse files
committed
remove archived_at
1 parent 7dee8ef commit 658c618

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

labelbox/schema/batch.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ class Batch(DbObject):
2828
created_at = Field.DateTime("created_at")
2929
updated_at = Field.DateTime("updated_at")
3030
size = Field.Int("size")
31-
archived_at = Field.DateTime("archived_at")
3231

3332
# Relationships
3433
project = Relationship.ToOne("Project")

labelbox/schema/project.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -851,12 +851,17 @@ def batches(self) -> PaginatedCollection:
851851
project(where: {id: $%s}) {id
852852
batches(after: $from, first: $first) { nodes { %s } pageInfo { endCursor }}}}
853853
""" % (id_param, id_param, query.results_query_part(Entity.Batch))
854-
return PaginatedCollection(
855-
self.client,
856-
query_str, {id_param: self.uid}, ['project', 'batches', 'nodes'],
857-
Entity.Batch,
858-
cursor_path=['project', 'batches', 'pageInfo', 'endCursor'],
859-
experimental=True)
854+
return PaginatedCollection(self.client,
855+
query_str, {id_param: self.uid},
856+
['project', 'batches', 'nodes'],
857+
Entity.Batch,
858+
cursor_path={
859+
'project': None,
860+
'batches': None,
861+
'pageInfo': None,
862+
'endCursor': None
863+
},
864+
experimental=True)
860865

861866
def upload_annotations(
862867
self,

0 commit comments

Comments
 (0)