Skip to content

Commit e71fc6b

Browse files
committed
Fix export
1 parent 81e5794 commit e71fc6b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

superannotate/db/exports.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,15 @@ def prepare_export(
131131
upload_state = upload_state_int_to_str(project.get("upload_state"))
132132

133133
if upload_state == "External" and include_fuse:
134-
logger.warning("Include fuse functionality is not supported for projects containing items attached with URLs")
134+
logger.warning(
135+
"Include fuse functionality is not supported for projects containing items attached with URLs"
136+
)
135137
include_fuse = False
136138
if project["type"] == "Video":
137139
if only_pinned:
138-
logger.warning("Pin functionality is not supported for projects containing videos attached with URLs")
140+
logger.warning(
141+
"Pin functionality is not supported for projects containing videos attached with URLs"
142+
)
139143
only_pinned, include_fuse = False, False
140144

141145
team_id, project_id = project["team_id"], project["id"]
@@ -150,8 +154,8 @@ def prepare_export(
150154
json_req = {
151155
"include": annotation_statuses,
152156
"coco": 0,
153-
"is_pinned": only_pinned,
154-
"fuse": include_fuse,
157+
"is_pinned": int(only_pinned),
158+
"fuse": int(include_fuse),
155159
"time": current_time
156160
}
157161
if folder_names is not None:

0 commit comments

Comments
 (0)