Skip to content

Commit beed61a

Browse files
committed
Update __init__.py
1 parent b77143d commit beed61a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/superannotate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import sys
33

4-
__version__ = "4.4.2dev2"
4+
__version__ = "4.4.2dev3"
55

66
sys.path.append(os.path.split(os.path.realpath(__file__))[0])
77

src/superannotate/lib/core/usecases/annotations.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,9 +579,12 @@ def _validate_json(self, json_data: dict) -> list:
579579
)
580580
return use_case.execute().data
581581

582-
@staticmethod
583-
def set_defaults(annotation_data: dict, project_type: int):
582+
def set_defaults(self, annotation_data: dict, project_type: int):
584583
default_data = {}
584+
annotation_data["metadata"]["lastAction"] = {
585+
"email": self._team.creator_id,
586+
"timestamp": int(time.time())
587+
}
585588
instances = annotation_data.get("instances", [])
586589
if project_type in constants.ProjectType.images:
587590
default_data["probability"] = 100

0 commit comments

Comments
 (0)