Files
StarPilot/selfdrive/ui/lib/starpilot_version.py
T
firestar5683 bdc1532258 App / Version
2026-06-28 12:44:58 -05:00

14 lines
323 B
Python

STARPILOT_DISPLAY_VERSION = "7.26"
def starpilot_display_description(description: str | None) -> str:
if not description:
return ""
parts = [part.strip() for part in description.split(" / ")]
if not parts:
return STARPILOT_DISPLAY_VERSION
parts[0] = STARPILOT_DISPLAY_VERSION
return " / ".join(parts)