Skip to content

Commit f292247

Browse files
author
Matt Sokoloff
committed
format
1 parent ce5cc6a commit f292247

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

labelbox/schema/project.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,10 @@ def attach_instructions(self, instructions_file: str):
181181
instructions_file (str): Path to a local file.
182182
* Must be either a pdf, text, or html file.
183183
184-
Raises ValueError:
185-
* project must be setup
186-
* instructions file must be one of ".text", ".txt", ".pdf", ".html"
184+
Raises:
185+
ValueError:
186+
* project must be setup
187+
* instructions file must end with one of ".text", ".txt", ".pdf", ".html"
187188
"""
188189

189190
if self.setup_complete is None:
@@ -229,9 +230,9 @@ def attach_instructions(self, instructions_file: str):
229230
) {id}
230231
}""", {
231232
"frontendId": frontendId,
233+
"optionsId": option_id,
232234
"name": frontend.name,
233235
"description": "Video, image, and text annotation",
234-
"optionsId": option_id,
235236
"customizationOptions": json.dumps(customization_options)
236237
})
237238

0 commit comments

Comments
 (0)