remove the paranthesis from the export deco since they aren't needed anymore
This commit is contained in:
parent
95af21eca9
commit
c17eb14dd2
|
@ -126,7 +126,7 @@ class Core(CorePluginBase):
|
||||||
|
|
||||||
|
|
||||||
# export:
|
# export:
|
||||||
@export()
|
@export
|
||||||
def get_stats(self, keys):
|
def get_stats(self, keys):
|
||||||
stats_dict = {}
|
stats_dict = {}
|
||||||
for key in keys:
|
for key in keys:
|
||||||
|
@ -134,7 +134,7 @@ class Core(CorePluginBase):
|
||||||
stats_dict[key] = self.stats[key]
|
stats_dict[key] = self.stats[key]
|
||||||
return stats_dict
|
return stats_dict
|
||||||
|
|
||||||
@export()
|
@export
|
||||||
def get_totals(self):
|
def get_totals(self):
|
||||||
result = {}
|
result = {}
|
||||||
session_totals = self.get_session_totals()
|
session_totals = self.get_session_totals()
|
||||||
|
@ -142,7 +142,7 @@ class Core(CorePluginBase):
|
||||||
result[key] = self.totals[key] + session_totals[key]
|
result[key] = self.totals[key] + session_totals[key]
|
||||||
return result
|
return result
|
||||||
|
|
||||||
@export()
|
@export
|
||||||
def get_session_totals(self):
|
def get_session_totals(self):
|
||||||
status = self.core.session.status()
|
status = self.core.session.status()
|
||||||
return {
|
return {
|
||||||
|
@ -152,14 +152,14 @@ class Core(CorePluginBase):
|
||||||
"total_payload_download": status.total_payload_download
|
"total_payload_download": status.total_payload_download
|
||||||
}
|
}
|
||||||
|
|
||||||
@export()
|
@export
|
||||||
def set_config(self, config):
|
def set_config(self, config):
|
||||||
"sets the config dictionary"
|
"sets the config dictionary"
|
||||||
for key in config.keys():
|
for key in config.keys():
|
||||||
self.config[key] = config[key]
|
self.config[key] = config[key]
|
||||||
self.config.save()
|
self.config.save()
|
||||||
|
|
||||||
@export()
|
@export
|
||||||
def get_config(self):
|
def get_config(self):
|
||||||
"returns the config dictionary"
|
"returns the config dictionary"
|
||||||
return self.config.config
|
return self.config.config
|
||||||
|
|
Loading…
Reference in New Issue