Skip to content

Commit e6b8a15

Browse files
committed
update
1 parent f40391c commit e6b8a15

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

zohocrm/client.py

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -223,25 +223,11 @@ def insert_record(self, module_name, data):
223223
if module_name.lower() not in WRITE_MODULE_LIST:
224224
print(1)
225225
return None
226-
# if not isinstance(data, list):
227-
# print(2)
228-
# return None
229-
# if len(data) <= 0:
230-
# print(3)
231-
# return None
232-
# if not isinstance(data[-1], dict):
233-
# print(4)
234-
# return None
235226
url = BASE_URL + str(module_name)
236-
print(5, url)
237227
data = dict(data)
238-
try:
239-
print(6)
240-
response = self._post(url, data={'data': data})
241-
except Exception as e:
242-
print(7, e)
243-
return False
244-
return response
228+
print('*********************')
229+
print('DATA: ', data)
230+
return self._post(url, data={'data': data})
245231

246232
def _get(self, endpoint, params=None):
247233
headers = {'Authorization': 'Zoho-oauthtoken {0}'.format(self.access_token), }

0 commit comments

Comments
 (0)