Skip to content

Commit

Permalink
fix: fix breaking change in harborapi
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnacioHeredia committed Dec 4, 2024
1 parent 3128975 commit d9c981a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ai4papi/routers/v1/snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d9c981a

Please sign in to comment.