Skip to content

Commit

Permalink
fix: printing of dataset, instantiated by ctx.get_resource(rid)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicornk committed Sep 13, 2024
1 parent e8e07df commit 4b0cc0f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,9 @@ def sync(self) -> Self:

def _get_repr_dict(self) -> dict:
d = super()._get_repr_dict()
d["branch"] = d["branch"]["id"]
if not hasattr(self, "branch"):
self.branch = self._context.catalog.api_get_branch(self.rid, "master").json()
d["branch"] = self.branch["id"]
return d


Expand Down

0 comments on commit 4b0cc0f

Please sign in to comment.