Use pyaoaddons as backend
This commit is contained in:
@@ -11,3 +11,4 @@ venv
|
|||||||
__pycache__
|
__pycache__
|
||||||
albion-online-stats.cfg
|
albion-online-stats.cfg
|
||||||
.mypy_cache
|
.mypy_cache
|
||||||
|
aoaddons.log
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
try:
|
try:
|
||||||
import aostats # type: ignore
|
import pyaoaddons # type: ignore
|
||||||
except:
|
except:
|
||||||
class aostats: # type: ignore
|
class pyaoaddons: # type: ignore
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def initialize():
|
def initialize():
|
||||||
return InitializationResult.NetworkInterfaceListMissing
|
return InitializationResult.NetworkInterfaceListMissing
|
||||||
@@ -32,7 +32,7 @@ def initialize():
|
|||||||
return InitializationResult.Ok
|
return InitializationResult.Ok
|
||||||
|
|
||||||
try:
|
try:
|
||||||
result = aostats.initialize()
|
result = pyaoaddons.initialize()
|
||||||
|
|
||||||
return INITIALIZATION_RESULT[result]
|
return INITIALIZATION_RESULT[result]
|
||||||
except:
|
except:
|
||||||
@@ -43,7 +43,7 @@ def subscribe(callback):
|
|||||||
if TEST_ENV_ENABLED:
|
if TEST_ENV_ENABLED:
|
||||||
return _testing_call_sequence(callback)
|
return _testing_call_sequence(callback)
|
||||||
|
|
||||||
aostats.subscribe(callback)
|
pyaoaddons.subscribe(callback)
|
||||||
|
|
||||||
|
|
||||||
def _testing_call_sequence(callback):
|
def _testing_call_sequence(callback):
|
||||||
|
|||||||
Reference in New Issue
Block a user