Refactor: typing cleanup, 경로 하드코딩 제거, GPS 데이터 Lon/Lat 분리, 불필요 모듈 삭제

This commit is contained in:
minar
2026-06-24 03:09:16 +09:00
parent f662e4fd1b
commit aa5228a526
12 changed files with 124 additions and 523 deletions

View File

@@ -116,16 +116,16 @@ class DBXLStorage(ABC):
# 시트를 가져온다.
# 엑셀 파일이 안 열려 있으면 None
def getSheet(self, sheetName, bNew = False):
retSheet = None
if None == sheetName or "" == sheetName:
return None
def getSheet(self, sheetName:str, bNew:bool = False):
if self.m_wb is None:
util.DbgOut("XLS not opened", True)
return None
if util.IsEmptyStr(sheetName):
return None
retSheet = None
try:
retSheet = self.m_wb[sheetName]
except KeyError:
@@ -138,7 +138,7 @@ class DBXLStorage(ABC):
# 데이터베이스용 엑셀 파일의 경로를 얻어온다.
# 폴더만 입력되었으면 파일이름을 삽입하고, 완전한 경로라면 패스
def GetXLSPath(self, pathSrc):
def GetXLSPath(self, pathSrc:str)-> str:
retPath = self.path
if os.path.isdir(pathSrc):
@@ -146,7 +146,7 @@ class DBXLStorage(ABC):
return retPath
def FindLastRow(self, sheetName):
def FindLastRow(self, sheetName:str)-> int:
sheet = self.getSheet(sheetName)
if sheet is None:
return -1