use path name over stem
All checks were successful
Build and Push Docker Image / build (push) Successful in 15s

This commit is contained in:
Corban-Lee Jones 2024-12-09 01:33:36 +00:00
parent a06966fc81
commit 945b7422e4

View File

@ -17,7 +17,7 @@ ZOMBOID_FOLDER_PATH = Path(getenv("SPIFFO__ZOMBOID_FOLDER_PATH"))
LOGS_FOLDER_PATH = ZOMBOID_FOLDER_PATH / "Logs"
USER_LOG_FILE_PATH = None
for path in LOGS_FOLDER_PATH.iterdir():
if path.stem.endswith("_user.txt"):
if path.name.endswith("_user.txt"):
USER_LOG_FILE_PATH = path
break