diff --git a/cvat/apps/events/const.py b/cvat/apps/events/const.py index 6bee279c3041..35df51c7adb0 100644 --- a/cvat/apps/events/const.py +++ b/cvat/apps/events/const.py @@ -7,4 +7,4 @@ MAX_EVENT_DURATION = datetime.timedelta(seconds=100) WORKING_TIME_RESOLUTION = datetime.timedelta(milliseconds=1) WORKING_TIME_SCOPE = 'send:working_time' -COLLAPSED_EVENT_SCOPES = frozenset(("change:frame",)) +COMPRESSED_EVENT_SCOPES = frozenset(("change:frame",)) diff --git a/cvat/apps/events/utils.py b/cvat/apps/events/utils.py index 67911178e2bc..745bb8fde316 100644 --- a/cvat/apps/events/utils.py +++ b/cvat/apps/events/utils.py @@ -5,7 +5,7 @@ import datetime -from .const import MAX_EVENT_DURATION, COLLAPSED_EVENT_SCOPES +from .const import MAX_EVENT_DURATION, COMPRESSED_EVENT_SCOPES from .cache import clear_cache @@ -71,7 +71,7 @@ def wrap(self, *args, **kwargs): def get_end_timestamp(event: dict) -> datetime.datetime: - if event["scope"] in COLLAPSED_EVENT_SCOPES: + if event["scope"] in COMPRESSED_EVENT_SCOPES: return event["timestamp"] + datetime.timedelta(milliseconds=event["duration"]) return event["timestamp"]