Skip to content

Commit 8a7ddd9

Browse files
committed
Fix image name with stripe - change text to document
1 parent 04bafed commit 8a7ddd9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

superannotate/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
SPECIAL_CHARACTERS_IN_PROJECT_FOLDER_NAMES = set('/\\:*?"<>|')
2121

22-
_PROJECT_TYPES = {"Vector": 1, "Pixel": 2, "Video": 3, "Text": 4}
22+
_PROJECT_TYPES = {"Vector": 1, "Pixel": 2, "Video": 3, "Document": 4}
2323

2424
_ANNOTATION_STATUSES = {
2525
"NotStarted": 1,

superannotate/db/exports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def prepare_export(
135135
"Include fuse functionality is not supported for projects containing items attached with URLs"
136136
)
137137
include_fuse = False
138-
if project["type"] in ["Video","Text"]:
138+
if project["type"] in ["Video","Document"]:
139139
if only_pinned:
140140
logger.warning(
141141
f"Pin functionality is not supported for projects containing {project['type']} attached with URLs"

superannotate/db/project_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def get_project_metadata_bare(project_name, include_complete_image_count=False):
4848
outer_outer_function = inspect.getframeinfo(
4949
current_frame.f_back.f_back
5050
).function
51-
if res.get("type") and res["type"] in ["Video","Text"] and (
51+
if res.get("type") and res["type"] in ["Video","Document"] and (
5252
outer_function in common.VIDEO_DEPRICATED_FUNCTIONS or
5353
outer_outer_function in common.VIDEO_DEPRICATED_FUNCTIONS
5454
):
@@ -151,7 +151,7 @@ def get_project_and_folder_metadata(project):
151151
outer_outer_function = inspect.getframeinfo(
152152
current_frame.f_back.f_back
153153
).function
154-
if project.get("type") and project["type"] in ["Video","Text"] \
154+
if project.get("type") and project["type"] in ["Video","Document"] \
155155
and (outer_function in common.VIDEO_DEPRICATED_FUNCTIONS
156156
or outer_outer_function in common.VIDEO_DEPRICATED_FUNCTIONS):
157157
project_type = project['type']

0 commit comments

Comments
 (0)