Skip to content
Snippets Groups Projects
Commit a0f210ca authored by florian's avatar florian
Browse files

FIX: Use size for has_errors/has_warnings

parent 733b1b8d
Branches
No related tags found
1 merge request!7ENH: Implement queries and entity retrieval
Pipeline #12074 passed
Pipeline: CaosDB Julia Integration Tests

#12077

    ...@@ -1595,7 +1595,7 @@ Return true if the given `entity` has errors, false otherwise. ...@@ -1595,7 +1595,7 @@ Return true if the given `entity` has errors, false otherwise.
    """ """
    function has_errors(entity::Ref{_Entity}) function has_errors(entity::Ref{_Entity})
    return get_errors(entity) > 0 return get_errors_size(entity) > 0
    end end
    ...@@ -1606,7 +1606,7 @@ Return true if the given `entity` has warnings, false otherwise. ...@@ -1606,7 +1606,7 @@ Return true if the given `entity` has warnings, false otherwise.
    """ """
    function has_warnings(entity::Ref{_Entity}) function has_warnings(entity::Ref{_Entity})
    return get_warnings(entity) > 0 return get_warnings_size(entity) > 0
    end end
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment