Skip to content

Commit 8ca0e88

Browse files
committed
Fix query serializer
1 parent 97f0106 commit 8ca0e88

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/superannotate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import sys
33

4-
__version__ = "4.4.1b3"
4+
__version__ = "4.4.1b4"
55

66
sys.path.append(os.path.split(os.path.realpath(__file__))[0])
77

src/superannotate/lib/core/usecases/items.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,7 @@ def execute(self) -> Response:
209209
if service_response.ok:
210210
data = []
211211
for i, item in enumerate(service_response.data):
212-
tmp_item = GetItem.serialize_entity(
213-
item, self._project
214-
)
212+
tmp_item = GetItem.serialize_entity(BaseItemEntity(**item), self._project)
215213
folder_path = f"{'/' + item['folder_name'] if not item['is_root_folder'] else ''}"
216214
tmp_item.path = f"{self._project.name}" + folder_path
217215
data.append(tmp_item)

0 commit comments

Comments
 (0)