mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 05:47:50 +00:00
Fix get_config
This commit is contained in:
parent
c6d67b824a
commit
05609bda61
@ -293,13 +293,14 @@ class Core(CorePluginBase):
|
|||||||
|
|
||||||
def export_get_config(self):
|
def export_get_config(self):
|
||||||
"see : label_set_config"
|
"see : label_set_config"
|
||||||
return dict ( (k,self.config[k] ) for k in CORE_OPTIONS)
|
return dict((key, self.config[key]) for key in CORE_OPTIONS if key in self.config.config)
|
||||||
|
|
||||||
def export_set_config(self, options):
|
def export_set_config(self, options):
|
||||||
"""global_options:"""
|
"""global_options:"""
|
||||||
for key in CORE_OPTIONS:
|
for key, value in options.items:
|
||||||
if options.has_key(key):
|
if key in CORE_OPTIONS:
|
||||||
self.config[key] = options[key]
|
self.config[key] = value
|
||||||
|
|
||||||
self.config.save()
|
self.config.save()
|
||||||
|
|
||||||
def _status_get_label(self, torrent_id):
|
def _status_get_label(self, torrent_id):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user