Skip to content

Commit

Permalink
Fix App frame fields (#1899)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminpkane authored Jun 21, 2022
1 parent 55d9337 commit 30103b9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
11 changes: 11 additions & 0 deletions docs/source/release-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ FiftyOne Release Notes

.. default-role:: code

.. _release-notes-v0.16.4:

FiftyOne 0.16.4
---------------
*Released June 21, 2022*

App

- Fixed frame fields omission in the sidebar
`#1899 <https://github.com/voxel51/fiftyone/pull/1899>`_

.. _release-notes-v0.16.3:

FiftyOne 0.16.3
Expand Down
5 changes: 3 additions & 2 deletions fiftyone/server/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import fiftyone.constants as foc
import fiftyone.core.context as focx
import fiftyone.core.dataset as fod
import fiftyone.core.media as fom
import fiftyone.core.uid as fou
import fiftyone.core.view as fov

Expand Down Expand Up @@ -191,7 +192,7 @@ async def resolver(

# old dataset docs, e.g. from imports have frame fields attached even for
# image datasets. we need to remove them
if dataset.media_type != MediaType.video:
if dataset.media_type != fom.VIDEO:
dataset.frame_fields = []

return dataset
Expand Down Expand Up @@ -303,7 +304,7 @@ def serialize_dataset(dataset: fod.Dataset, view: fov.DatasetView) -> t.Dict:

# old dataset docs, e.g. from imports have frame fields attached even for
# image datasets. we need to remove them
if data.media_type != MediaType.video:
if dataset.media_type != fom.VIDEO:
data.frame_fields = []

return asdict(data)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from setuptools import setup, find_packages


VERSION = "0.16.3"
VERSION = "0.16.4"


def get_version():
Expand Down

0 comments on commit 30103b9

Please sign in to comment.