Fix the server docker image build

This commit is contained in:
2026-02-28 20:47:53 +01:00
parent 564ba1d85d
commit 5c01ecb2d1
11 changed files with 87 additions and 35 deletions

View File

@@ -28,12 +28,8 @@ from xml.etree import ElementTree
from xml.dom import minidom
import gzip
# noinspection PyPackageRequirements
import wx
import config
import eos.db
from service.esi import Esi
from eos.saveddata.implant import Implant as es_Implant
from eos.saveddata.character import Character as es_Character, Skill
@@ -42,7 +38,12 @@ from eos.const import FittingSlot as es_Slot
from eos.saveddata.fighter import Fighter as es_Fighter
pyfalog = Logger(__name__)
_t = wx.GetTranslation
def _t(s):
import wx
return wx.GetTranslation(s)
class CharacterImportThread(threading.Thread):
@@ -97,6 +98,7 @@ class CharacterImportThread(threading.Thread):
pyfalog.error(e)
continue
import wx
wx.CallAfter(self.callback)
def stop(self):
@@ -132,6 +134,7 @@ class SkillBackupThread(threading.Thread):
with open(path, mode='w', encoding='utf-8') as backupFile:
backupFile.write(backupData)
import wx
wx.CallAfter(self.callback)
def stop(self):
@@ -386,6 +389,7 @@ class Character:
def apiFetchCallback(self, guiCallback, e=None):
eos.db.commit()
import wx
wx.CallAfter(guiCallback, e)
@staticmethod
@@ -501,6 +505,7 @@ class UpdateAPIThread(threading.Thread):
try:
char = eos.db.getCharacter(self.charID)
from service.esi import Esi
sEsi = Esi.getInstance()
sChar = Character.getInstance()
ssoChar = sChar.getSsoCharacter(char.ID)