Fix DB import (#1779)

* Sqlite3.row handling fix
* Fix import error in Python3
This commit is contained in:
Clinton Hall 2020-09-19 21:53:01 +12:00 committed by GitHub
commit beecb1b1a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View file

@ -97,7 +97,7 @@ class Authentication:
req_param['_sid'] = self._sid
if method is 'get':
if method == 'get':
url = ('%s%s' % (self._base_url, api_path)) + '?api=' + api_name
response = requests.get(url, req_param)
@ -106,7 +106,7 @@ class Authentication:
else:
return response
elif method is 'post':
elif method == 'post':
url = ('%s%s' % (self._base_url, api_path)) + '?api=' + api_name
response = requests.post(url, req_param)
@ -121,4 +121,4 @@ class Authentication:
@property
def base_url(self):
return self._base_url
return self._base_url