diff --git a/runtime/datamate-python/app/module/annotation/service/editor.py b/runtime/datamate-python/app/module/annotation/service/editor.py index b74285b..7160f77 100644 --- a/runtime/datamate-python/app/module/annotation/service/editor.py +++ b/runtime/datamate-python/app/module/annotation/service/editor.py @@ -1706,12 +1706,9 @@ class AnnotationEditorService: annotation is not None and annotation_file_version is None ) - # 判断是否有新版本:最新版本 > 标注时的版本 - has_new_version = ( - latest_file_version > annotation_file_version - if annotation_file_version is not None - else False - ) + # 判断是否有新版本:最新版本 > 当前文件版本 + # 无论是否有标注,只要传入的文件不是最新版本就提示 + has_new_version = latest_file_version > file_record.version return { "fileId": file_id,