mirror of
https://github.com/aclist/dztui.git
synced 2026-11-08 11:00:48 +01:00
feat: preconnection assistant (WIP)
This commit is contained in:
1 parent
139b226959
commit
33fbf765ed
8 files changed
+78
-23
No files matched your search
+6
-1
@@ -154,7 +154,12 @@ def remove_stale_signatures(config: Path, versions: Path) -> None:
|
||||
def find_stale_mods(config: Path) -> list[int]:
|
||||
def push_record(rec: str) -> list:
|
||||
record = fqip_to_record(rec)
|
||||
return [mod.workshop_id for mod in get_rules(record)]
|
||||
try:
|
||||
mods = get_rules(record)
|
||||
print(mods)
|
||||
except Exception:
|
||||
return []
|
||||
return [mod.workshop_id for mod in mods]
|
||||
|
||||
steam = lookup(config, Preferences.DEFAULT)
|
||||
steam_path = Path(steam)
|
||||
|
||||
@@ -438,6 +438,7 @@ def get_rules(record: Record) -> list["DayzMod"]:
|
||||
return [mod for mod in mods]
|
||||
except Exception as e:
|
||||
logger.critical(e)
|
||||
# TODO: supposed to skip failing servers for highlight action
|
||||
return []
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user