seatable-api 2.7.0__tar.gz → 2.7.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. {seatable-api-2.7.0 → seatable-api-2.7.1}/PKG-INFO +1 -1
  2. {seatable-api-2.7.0 → seatable-api-2.7.1}/seatable_api/api_gateway.py +2 -1
  3. {seatable-api-2.7.0 → seatable-api-2.7.1}/seatable_api/main.py +1 -1
  4. {seatable-api-2.7.0 → seatable-api-2.7.1}/seatable_api.egg-info/PKG-INFO +1 -1
  5. {seatable-api-2.7.0 → seatable-api-2.7.1}/setup.py +1 -1
  6. {seatable-api-2.7.0 → seatable-api-2.7.1}/README.md +0 -0
  7. {seatable-api-2.7.0 → seatable-api-2.7.1}/seatable_api/__init__.py +0 -0
  8. {seatable-api-2.7.0 → seatable-api-2.7.1}/seatable_api/column.py +0 -0
  9. {seatable-api-2.7.0 → seatable-api-2.7.1}/seatable_api/constants.py +0 -0
  10. {seatable-api-2.7.0 → seatable-api-2.7.1}/seatable_api/context.py +0 -0
  11. {seatable-api-2.7.0 → seatable-api-2.7.1}/seatable_api/convert_airtable.py +0 -0
  12. {seatable-api-2.7.0 → seatable-api-2.7.1}/seatable_api/date_utils.py +0 -0
  13. {seatable-api-2.7.0 → seatable-api-2.7.1}/seatable_api/exception.py +0 -0
  14. {seatable-api-2.7.0 → seatable-api-2.7.1}/seatable_api/message.py +0 -0
  15. {seatable-api-2.7.0 → seatable-api-2.7.1}/seatable_api/parsetab.py +0 -0
  16. {seatable-api-2.7.0 → seatable-api-2.7.1}/seatable_api/query.py +0 -0
  17. {seatable-api-2.7.0 → seatable-api-2.7.1}/seatable_api/socket_io.py +0 -0
  18. {seatable-api-2.7.0 → seatable-api-2.7.1}/seatable_api/utils.py +0 -0
  19. {seatable-api-2.7.0 → seatable-api-2.7.1}/seatable_api.egg-info/SOURCES.txt +0 -0
  20. {seatable-api-2.7.0 → seatable-api-2.7.1}/seatable_api.egg-info/dependency_links.txt +0 -0
  21. {seatable-api-2.7.0 → seatable-api-2.7.1}/seatable_api.egg-info/requires.txt +0 -0
  22. {seatable-api-2.7.0 → seatable-api-2.7.1}/seatable_api.egg-info/top_level.txt +0 -0
  23. {seatable-api-2.7.0 → seatable-api-2.7.1}/setup.cfg +0 -0
  24. {seatable-api-2.7.0 → seatable-api-2.7.1}/tests/__init__.py +0 -0
  25. {seatable-api-2.7.0 → seatable-api-2.7.1}/tests/dateutils_test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: seatable-api
3
- Version: 2.7.0
3
+ Version: 2.7.1
4
4
  Summary: Python client for SeaTable web api
5
5
  Home-page: https://github.com/seatable/seatable-api-python
6
6
  Author: seatable
@@ -251,7 +251,8 @@ class APIGateway(object):
251
251
  if apply_default is not None:
252
252
  json_data['apply_default'] = apply_default
253
253
  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')
255
256
 
256
257
 
257
258
  def batch_append_rows(self, table_name, rows_data, apply_default=None):
@@ -107,7 +107,7 @@ class SeaTableAPI(object):
107
107
  self.dtable_name = data.get('dtable_name')
108
108
 
109
109
  # api gateway entry
110
- self.use_api_gateway = data.get('use_api_gateway')
110
+ self.use_api_gateway = data.get('use_api_gateway', True)
111
111
  if self.use_api_gateway:
112
112
  self.api_gateway = APIGateway(
113
113
  token = self.token,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: seatable-api
3
- Version: 2.7.0
3
+ Version: 2.7.1
4
4
  Summary: Python client for SeaTable web api
5
5
  Home-page: https://github.com/seatable/seatable-api-python
6
6
  Author: seatable
@@ -1,6 +1,6 @@
1
1
  from setuptools import setup, find_packages
2
2
 
3
- __version__ = '2.7.0'
3
+ __version__ = '2.7.1'
4
4
 
5
5
  with open('README.md', 'r', encoding='utf-8') as fh:
6
6
  long_description = fh.read()
File without changes
File without changes