mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 18:47:09 -07:00
Fix DB import (#1779)
* Sqlite3.row handling fix * Fix import error in Python3
This commit is contained in:
parent
a359691515
commit
beecb1b1a0
3 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue