Skip to content

Commit 9c0abb9

Browse files
committed
Fix add_contributors_to_project
1 parent 1676a9e commit 9c0abb9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/superannotate/__init__.py

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

55

6-
__version__ = "4.4.31dev1"
6+
__version__ = "4.4.31dev2"
77

88
os.environ.update({"sa_version": __version__})
99
sys.path.append(os.path.split(os.path.realpath(__file__))[0])

src/superannotate/lib/infrastructure/utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,12 @@ def sync(self, project: ProjectEntity):
148148
roles = response.data["data"]
149149
self._K_V_map[project.id] = {
150150
"role_name_id_map": {
151-
role["role"]["name"]: role["role_id"] for role in roles
151+
**{role["role"]["name"]: role["role_id"] for role in roles},
152+
"ProjectAdmin": 3
152153
},
153154
"role_id_name_map": {
154-
role["role_id"]: role["role"]["name"] for role in roles
155+
**{role["role_id"]: role["role"]["name"] for role in roles},
156+
3: "ProjectAdmin"
155157
},
156158
}
157159
self._update_cache_timestamp(project.id)

0 commit comments

Comments
 (0)