feat: use functools.wraps

This commit is contained in:
aclist committed 2026-02-13 02:43:08 +09:00
1 parent c786ba2c9a
commit 82c585a195
2 files changed
+19 -13

No files matched your search

+3
View File
@@ -22,6 +22,7 @@ from typing import Any
logger = logging.getLogger(__name__)
@dataclass
class ModMeta:
protocol: str
@@ -41,6 +42,7 @@ def get_local_mod_path(steam_path: Path) -> Path:
workshop_path = p / WORKSHOP_PATH
return workshop_path
def get_local_mods(workshop_path: Path) -> list[Path]:
mods = [file for file in workshop_path.iterdir() if file.is_dir()]
return mods
@@ -148,6 +150,7 @@ def find_stale_mods(config: Path) -> list[int]:
steam = lookup(config, Preferences.DEFAULT)
steam_path = Path(steam)
# TODO: use concurrency
local = get_local_mod_ids(steam_path)
servers = lookup(config, Preferences.IP_LIST)