remove the paranthesis from the @exports
This commit is contained in:
parent
23544bd6b2
commit
49ec3a1535
|
@ -172,12 +172,12 @@ class Core(CorePluginBase):
|
||||||
self.clean_config()
|
self.clean_config()
|
||||||
self.config.save()
|
self.config.save()
|
||||||
|
|
||||||
@export()
|
@export
|
||||||
def get_labels(self):
|
def get_labels(self):
|
||||||
return sorted(self.labels.keys())
|
return sorted(self.labels.keys())
|
||||||
|
|
||||||
#Labels:
|
#Labels:
|
||||||
@export()
|
@export
|
||||||
def add(self, label_id):
|
def add(self, label_id):
|
||||||
"""add a label
|
"""add a label
|
||||||
see label_set_options for more options.
|
see label_set_options for more options.
|
||||||
|
@ -258,7 +258,7 @@ class Core(CorePluginBase):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@export()
|
@export
|
||||||
def set_options(self, label_id, options_dict , apply = False):
|
def set_options(self, label_id, options_dict , apply = False):
|
||||||
"""update the label options
|
"""update the label options
|
||||||
|
|
||||||
|
@ -295,12 +295,12 @@ class Core(CorePluginBase):
|
||||||
|
|
||||||
self.config.save()
|
self.config.save()
|
||||||
|
|
||||||
@export()
|
@export
|
||||||
def get_options(self, label_id):
|
def get_options(self, label_id):
|
||||||
"""returns the label options"""
|
"""returns the label options"""
|
||||||
return self.labels[label_id]
|
return self.labels[label_id]
|
||||||
|
|
||||||
@export()
|
@export
|
||||||
def set_torrent(self, torrent_id , label_id):
|
def set_torrent(self, torrent_id , label_id):
|
||||||
"""
|
"""
|
||||||
assign a label to a torrent
|
assign a label to a torrent
|
||||||
|
@ -322,12 +322,12 @@ class Core(CorePluginBase):
|
||||||
|
|
||||||
self.config.save()
|
self.config.save()
|
||||||
|
|
||||||
@export()
|
@export
|
||||||
def get_config(self):
|
def get_config(self):
|
||||||
"""see : label_set_config"""
|
"""see : label_set_config"""
|
||||||
return dict((key, self.config[key]) for key in CORE_OPTIONS if key in self.config.config)
|
return dict((key, self.config[key]) for key in CORE_OPTIONS if key in self.config.config)
|
||||||
|
|
||||||
@export()
|
@export
|
||||||
def set_config(self, options):
|
def set_config(self, options):
|
||||||
"""global_options:"""
|
"""global_options:"""
|
||||||
if options:
|
if options:
|
||||||
|
|
Loading…
Reference in New Issue