Skip to content

Commit 869ac14

Browse files
committed
tod
1 parent 3443888 commit 869ac14

File tree

3 files changed

+117
-113
lines changed

3 files changed

+117
-113
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.3"
4+
__version__ = "4.4.4dev1"
55

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

src/superannotate/lib/app/serializers.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,20 @@ def serialize(self):
113113

114114

115115
class ProjectSerializer(BaseSerializer):
116-
DEFAULT_EXCLUDE_SET = {"sync_status", "unverified_users"}
117-
118116
def serialize(
119117
self,
120118
fields: List[str] = None,
121119
by_alias: bool = True,
122120
flat: bool = False,
123121
exclude: Set[str] = None,
124122
):
125-
to_exclude = self.DEFAULT_EXCLUDE_SET
123+
124+
to_exclude = {"sync_status": True, "unverified_users": True,
125+
"classes": {"__all__": {"attribute_groups": {"__all__": {"is_multiselect"}}}}}
126126
if exclude:
127-
to_exclude = exclude.union(self.DEFAULT_EXCLUDE_SET)
127+
for field in exclude:
128+
to_exclude[field] = True
129+
128130
data = super().serialize(fields, by_alias, flat, to_exclude)
129131
if data.get("settings"):
130132
data["settings"] = [

0 commit comments

Comments
 (0)