diff --git a/requirements-swh.txt b/requirements-swh.txt --- a/requirements-swh.txt +++ b/requirements-swh.txt @@ -1,6 +1,6 @@ swh.core >= 0.0.95 swh.indexer >= 0.0.171 -swh.model >= 0.3.4 +swh.model >= 0.3.5 swh.scheduler >= 0.1.1 swh.search >= 0.0.4 swh.storage >= 0.8.0 diff --git a/swh/web/tests/views.py b/swh/web/tests/views.py --- a/swh/web/tests/views.py +++ b/swh/web/tests/views.py @@ -45,7 +45,7 @@ contents = [] for name, obj in directory.items(): - if isinstance(obj, from_disk.Content): + if obj.object_type in ("content", "content_file"): c = obj.to_model().with_data().to_dict() c["status"] = "visible" sha1 = hash_to_hex(c["sha1"])