MCPcopy Create free account
hub / github.com/SunOner/sunone_aimbot / _parse_version

Function _parse_version

helper_api.py:159–169  ·  view source on GitHub ↗
(lines: list[str])

Source from the content-addressed store, hash-verified

157
158
159def _parse_version(lines: list[str]) -> dict[str, str | int]:
160 result: dict[str, str | int] = {"app_version": 0, "config_version": 0}
161 for line in lines:
162 if "=" not in line:
163 continue
164 key, value = line.strip().split("=", 1)
165 if key == "app":
166 result["app_version"] = value
167 elif key == "config":
168 result["config_version"] = value
169 return result
170
171
172def _offline_version() -> dict[str, str | int]:

Callers 2

_offline_versionFunction · 0.85
_online_versionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected