Skip to content

Commit 4b49981

Browse files
authored
Merge pull request #97 from seatable/api-gateway-handle-single-rows
Api gateway handle single rows
2 parents cd9e8bf + 15f4f02 commit 4b49981

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

seatable_api/api_gateway.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ def append_row(self, table_name, row_data, apply_default=None):
251251
if apply_default is not None:
252252
json_data['apply_default'] = apply_default
253253
response = requests.post(url, json=json_data, headers=self.headers, timeout=self.timeout)
254-
return parse_response(response)
254+
data = parse_response(response)
255+
return data.get('first_row')
255256

256257

257258
def batch_append_rows(self, table_name, rows_data, apply_default=None):

0 commit comments

Comments
 (0)