diff --git a/ai4papi/routers/v1/snapshots.py b/ai4papi/routers/v1/snapshots.py index 66c7a70..cc7f96c 100644 --- a/ai4papi/routers/v1/snapshots.py +++ b/ai4papi/routers/v1/snapshots.py @@ -272,7 +272,7 @@ def get_harbor_snapshots( snapshots = [] for a in artifacts: # Ignore snapshot if it doesn't belong to the VO - a_labels = a.extra_attrs.config["Labels"] + a_labels = a.extra_attrs.root["config"]["Labels"] if a_labels.get("VO") != vo: continue diff --git a/requirements.txt b/requirements.txt index 1e7cb97..14ab778 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,6 +14,6 @@ pydantic >= 2.5.2, < 3.0 # >= 2.5.2 is needed for OSCAR's pydantic model ("_name" private arg) natsort >= 8.1.0, < 9.0 ai4_metadata >= 2.0.2, < 3.0 -harborapi >= 0.25.3, < 1.0 +harborapi >= 0.26.1, < 1.0 httpx==0.27.2 # temporal patch for harborapi, remove when issue is fixed: https://github.com/unioslo/harborapi/issues/102 pre-commit >= 4.0.1, <= 5.0