mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 06:32:53 +01:00
fix: pass custom flag
This commit is contained in:
1 parent
4f51d962e7
commit
241df72bf3
1 file changed
+3
-3
+3
-3
@@ -83,14 +83,14 @@ def get_mod_size(path: Path) -> float:
|
|||||||
def get_custom_mods(path: Path) -> list[Any]:
|
def get_custom_mods(path: Path) -> list[Any]:
|
||||||
mods = get_local_mods(path)
|
mods = get_local_mods(path)
|
||||||
# TODO: error handling
|
# TODO: error handling
|
||||||
return parse_mods(mods)
|
return parse_mods(mods, use_custom=True)
|
||||||
|
|
||||||
|
|
||||||
def parse_mods(mods: list[Path]) -> list[Any]:
|
def parse_mods(mods: list[Path], use_custom: bool = False) -> list[Any]:
|
||||||
clean = []
|
clean = []
|
||||||
for mod in mods:
|
for mod in mods:
|
||||||
mod_dir = mod.name
|
mod_dir = mod.name
|
||||||
symlink = _hash(mod_dir)
|
symlink = _hash(mod_dir, use_custom)
|
||||||
meta = tokenize(mod)
|
meta = tokenize(mod)
|
||||||
if meta is None:
|
if meta is None:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in new issue
Block a user