mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
test
This commit is contained in:
parent
3731f7ef70
commit
252f6d8817
@ -37,17 +37,9 @@ class Spicemanip():
|
|||||||
self.output_type = output_type
|
self.output_type = output_type
|
||||||
self.core_output_handler()
|
self.core_output_handler()
|
||||||
|
|
||||||
# cleanup
|
|
||||||
self.core_class_cleanup()
|
|
||||||
|
|
||||||
# return value/s
|
# return value/s
|
||||||
return self.outputs
|
return self.outputs
|
||||||
|
|
||||||
def core_class_cleanup(self):
|
|
||||||
for classitem in ["inputs", "task", "output_type"]:
|
|
||||||
if hasattr(self, str(classitem)):
|
|
||||||
del classitem
|
|
||||||
|
|
||||||
def core_input_handler(self):
|
def core_input_handler(self):
|
||||||
# Input needs to be a list, but don't split a word into letters
|
# Input needs to be a list, but don't split a word into letters
|
||||||
if not self.inputs:
|
if not self.inputs:
|
||||||
@ -119,7 +111,7 @@ class Spicemanip():
|
|||||||
|
|
||||||
elif hasattr(self,
|
elif hasattr(self,
|
||||||
str(self.task)) and not str(self.task).startswith("core_"):
|
str(self.task)) and not str(self.task).startswith("core_"):
|
||||||
self.outputs = eval('self.' + str(self.task) + '(inputs)')
|
self.outputs = eval('self.' + str(self.task) + '(self.input_list)')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
raise Exception(
|
raise Exception(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user