Skip to content

Commit 1e597a6

Browse files
author
Matt Sokoloff
committed
add back html instructions
1 parent be2bce6 commit 1e597a6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Fix
44
* Make `TypedArray` class compatible with `numpy` versions `>= 1.22.0`
55
* `project.upsert_review_queue` quotas can now be in the inclusive range [0,1]
6+
* Restore support for upserting html instructions to a project
67

78
# Version 3.11.0 (2021-12-15)
89

labelbox/schema/project.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,11 @@ def upsert_instructions(self, instructions_file: str):
338338
f"This function has only been tested to work with the Editor front end. Found %s",
339339
frontend.name)
340340

341-
supported_instruction_formats = (".pdf")
341+
supported_instruction_formats = (".pdf", ".html")
342342
if not instructions_file.endswith(supported_instruction_formats):
343343
raise ValueError(
344-
f"instructions_file must be a pdf. Found {instructions_file}")
344+
f"instructions_file must be a pdf or html file. Found {instructions_file}"
345+
)
345346

346347
lfo = list(self.labeling_frontend_options())[-1]
347348
instructions_url = self.client.upload_file(instructions_file)

0 commit comments

Comments
 (0)