Skip to content

Commit

Permalink
Adapt tags_api to the move to hopsworks
Browse files Browse the repository at this point in the history
It depends on _project_id of client; todo: ensure that it is always set up.
  • Loading branch information
aversey committed Jul 15, 2024
1 parent dcc2ea9 commit d4e117f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/hopsworks/core/tags_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import json

from hsfs import client, feature_view, tag
from hopsworks import client, tag


class TagsApi:
Expand Down Expand Up @@ -100,7 +100,7 @@ def get(self, metadata_instance, name: str = None, training_dataset_version=None

def get_path(self, metadata_instance, training_dataset_version=None):
_client = client.get_instance()
if isinstance(metadata_instance, feature_view.FeatureView):
if type(metadata_instance).__name__ == "FeatureView":
path = [
"project",
_client._project_id,
Expand Down

0 comments on commit d4e117f

Please sign in to comment.