mirror of
https://github.com/N4S4/synology-api.git
synced 2025-08-13 14:46:24 +00:00
error fix
Fix error where get_dir_status was not returning the correct value
This commit is contained in:
2
setup.py
2
setup.py
@ -8,7 +8,7 @@ with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
|
||||
|
||||
setup(
|
||||
name='synology-api',
|
||||
version='0.2.1',
|
||||
version='0.2.2',
|
||||
packages=find_packages(exclude=['tests*']),
|
||||
license='MIT',
|
||||
description='Python Synology API Wrapper',
|
||||
|
@ -406,9 +406,7 @@ class FileStation:
|
||||
req_param = {'version': info['maxVersion'], 'method': 'status', 'taskid': taskid}
|
||||
|
||||
if taskid is None and self._dir_taskid is not '':
|
||||
req_param['taskid'] = self._dir_taskid
|
||||
else:
|
||||
return 'Did you run start_dir_size_calc() first? No task id found!' + str(self._dir_taskid_list)
|
||||
return 'Choose a taskid from this list: ' + str(self._dir_taskid)
|
||||
|
||||
return self.request_data(api_name, api_path, req_param)
|
||||
|
||||
|
Reference in New Issue
Block a user