do not have duplicate class name in onionrpluginapi

This commit is contained in:
Kevin Froman 2019-07-29 13:43:50 -05:00
parent 2316e3c6e4
commit 802af58d46
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ import config, logger, onionrplugins as plugins, onionrpluginapi as pluginapi
from threading import Thread from threading import Thread
def get_pluginapi(onionr, data): def get_pluginapi(onionr, data):
return pluginapi.pluginapi(onionr, data) return pluginapi.SharedAPI(onionr, data)
def __event_caller(event_name, data = {}, onionr = None): def __event_caller(event_name, data = {}, onionr = None):
''' '''

View File

@ -143,7 +143,7 @@ class WebAPI:
def get_callbacks(self, scope = None): def get_callbacks(self, scope = None):
return self.pluginapi.get_onionr().api.getCallbacks(scope = scope) return self.pluginapi.get_onionr().api.getCallbacks(scope = scope)
class pluginapi: class SharedAPI:
def __init__(self, onionr, data): def __init__(self, onionr, data):
self.onionr = onionr self.onionr = onionr
self.data = data self.data = data