mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 14:42:54 +01:00
feat: use functools.wraps
This commit is contained in:
1 parent
c786ba2c9a
commit
82c585a195
2 files changed
+19
-13
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user