Skip to content

Commit 7ddb20c

Browse files
authored
[fix] Project setup order of operations (#24)
1 parent e1fd34b commit 7ddb20c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

labelbox/schema/project.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,15 @@ def setup(self, labeling_frontend, labeling_frontend_options):
199199
if not isinstance(labeling_frontend_options, str):
200200
labeling_frontend_options = json.dumps(labeling_frontend_options)
201201

202+
self.labeling_frontend.connect(labeling_frontend)
203+
202204
LFO = Entity.LabelingFrontendOptions
203205
labeling_frontend_options = self.client._create(
204206
LFO, {LFO.project: self, LFO.labeling_frontend: labeling_frontend,
205207
LFO.customization_options: labeling_frontend_options,
206208
LFO.organization: organization
207209
})
208210

209-
self.labeling_frontend.connect(labeling_frontend)
210211
timestamp = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
211212
self.update(setup_complete=timestamp)
212213

0 commit comments

Comments
 (0)