Skip to content

Commit 7f664a8

Browse files
authored
Merge pull request #263 from superannotateai/fix-logs
Fix logs
2 parents 2ad4eb0 + fcaf987 commit 7f664a8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/superannotate/lib/core/helpers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def safe_time(timestamp):
139139
return "0" if str(timestamp) == "0.0" else timestamp
140140

141141
def convert_timestamp(timestamp):
142-
return timestamp / 10 ** 6 if timestamp else None
142+
return timestamp / 10 ** 6 if timestamp else "0"
143143

144144
editor_data = {
145145
"instances": [],
@@ -159,7 +159,8 @@ def convert_timestamp(timestamp):
159159
"attributes": [],
160160
"timeline": {},
161161
"type": meta["type"],
162-
"locked": True,
162+
# TODO check
163+
"locked": False,
163164
}
164165
if class_name:
165166
editor_instance["classId"] = class_name_mapper.get(class_name, {}).get(

0 commit comments

Comments
 (0)