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.config.save()
|
||||
|
||||
@export()
|
||||
@export
|
||||
def get_labels(self):
|
||||
return sorted(self.labels.keys())
|
||||
|
||||
#Labels:
|
||||
@export()
|
||||
@export
|
||||
def add(self, label_id):
|
||||
"""add a label
|
||||
see label_set_options for more options.
|
||||
|
@ -258,7 +258,7 @@ class Core(CorePluginBase):
|
|||
return True
|
||||
return False
|
||||
|
||||
@export()
|
||||
@export
|
||||
def set_options(self, label_id, options_dict , apply = False):
|
||||
"""update the label options
|
||||
|
||||
|
@ -295,12 +295,12 @@ class Core(CorePluginBase):
|
|||
|
||||
self.config.save()
|
||||
|
||||
@export()
|
||||
@export
|
||||
def get_options(self, label_id):
|
||||
"""returns the label options"""
|
||||
return self.labels[label_id]
|
||||
|
||||
@export()
|
||||
@export
|
||||
def set_torrent(self, torrent_id , label_id):
|
||||
"""
|
||||
assign a label to a torrent
|
||||
|
@ -322,12 +322,12 @@ class Core(CorePluginBase):
|
|||
|
||||
self.config.save()
|
||||
|
||||
@export()
|
||||
@export
|
||||
def get_config(self):
|
||||
"""see : label_set_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):
|
||||
"""global_options:"""
|
||||
if options:
|
||||
|
|
Loading…
Reference in New Issue