Use pyaoaddons as backend

This commit is contained in:
Wiktor Mazur
2020-05-25 17:05:25 +02:00
parent a2f25750e2
commit c9510340da
2 changed files with 5 additions and 4 deletions
+1
View File
@@ -11,3 +11,4 @@ venv
__pycache__
albion-online-stats.cfg
.mypy_cache
aoaddons.log
+4 -4
View File
@@ -1,7 +1,7 @@
try:
import aostats # type: ignore
import pyaoaddons # type: ignore
except:
class aostats: # type: ignore
class pyaoaddons: # type: ignore
@staticmethod
def initialize():
return InitializationResult.NetworkInterfaceListMissing
@@ -32,7 +32,7 @@ def initialize():
return InitializationResult.Ok
try:
result = aostats.initialize()
result = pyaoaddons.initialize()
return INITIALIZATION_RESULT[result]
except:
@@ -43,7 +43,7 @@ def subscribe(callback):
if TEST_ENV_ENABLED:
return _testing_call_sequence(callback)
aostats.subscribe(callback)
pyaoaddons.subscribe(callback)
def _testing_call_sequence(callback):