feat: Add more code cleanup
All checks were successful
Build Docker / Build Image (push) Successful in 51s
All checks were successful
Build Docker / Build Image (push) Successful in 51s
This commit is contained in:
12
plugin.py
12
plugin.py
@@ -148,8 +148,8 @@ def getPluginData(pluginStr: str):
|
||||
|
||||
|
||||
def getPluginFunctions(plugin: str):
|
||||
plugin = import_module(plugin.replace("/","."))
|
||||
return plugin.functions
|
||||
imported_plugin = import_module(plugin.replace("/","."))
|
||||
return imported_plugin.functions
|
||||
|
||||
|
||||
def runPluginFunction(plugin: str, function: str, params: dict, authentication: (str|None)):
|
||||
@@ -192,13 +192,13 @@ def runPluginFunction(plugin: str, function: str, params: dict, authentication:
|
||||
|
||||
|
||||
def getPluginFunctionInputs(plugin: str, function: str):
|
||||
plugin = import_module(plugin.replace("/","."))
|
||||
return plugin.functions[function]["params"]
|
||||
imported_plugin = import_module(plugin.replace("/","."))
|
||||
return imported_plugin.functions[function]["params"]
|
||||
|
||||
|
||||
def getPluginFunctionReturns(plugin: str, function: str):
|
||||
plugin = import_module(plugin.replace("/","."))
|
||||
return plugin.functions[function]["returns"]
|
||||
imported_plugin = import_module(plugin.replace("/","."))
|
||||
return imported_plugin.functions[function]["returns"]
|
||||
|
||||
|
||||
def getDomainFunctions():
|
||||
|
||||
Reference in New Issue
Block a user