Skip to content

Commit

Permalink
CTX-4792: Fix an exception when fetching image dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
dule1322 committed Oct 16, 2023
1 parent 526a392 commit b224965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coretex/entities/dataset/image_dataset/image_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def fetchById(cls, objectId: int, **kwargs: Any) -> Self:
response = networkManager.get(f"annotation-class?dataset_id={obj.id}")

if not response.hasFailed():
obj.classes = cls._decodeValue("classes", response.getJson(dict))
obj.classes = cls._decodeValue("classes", response.getJson(list))
obj._writeClassesToFile()

return obj
Expand Down

0 comments on commit b224965

Please sign in to comment.