Skip to content

Commit 9f6721f

Browse files
Fix functions input/output
1 parent a2e5995 commit 9f6721f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/diffgram/schema/attribute.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def new(self, schema):
2727
self.project.handle_errors(response)
2828
data = response.json()
2929

30-
return data
30+
return data['attribute_template_group']
3131

3232
def update(self,
3333
attribute,
@@ -40,7 +40,7 @@ def update(self,
4040
):
4141
url = f'/api/v1/project/{self.project.project_string_id}/attribute/group/update'
4242
payload = {
43-
"group_id": attribute['attribute_template_group']['id'],
43+
"group_id": attribute['id'],
4444
"mode": "UPDATE",
4545
"prompt": prompt,
4646
"name": name,

0 commit comments

Comments
 (0)