(lines: list[str])
| 157 | |
| 158 | |
| 159 | def _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 | |
| 172 | def _offline_version() -> dict[str, str | int]: |
no outgoing calls
no test coverage detected