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
No related branches found
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.
    """
    function has_errors(entity::Ref{_Entity})
    return get_errors(entity) > 0
    return get_errors_size(entity) > 0
    end
    ......@@ -1606,7 +1606,7 @@ Return true if the given `entity` has warnings, false otherwise.
    """
    function has_warnings(entity::Ref{_Entity})
    return get_warnings(entity) > 0
    return get_warnings_size(entity) > 0
    end
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment