Files
StarPilot/selfdrive/ui/lib/starpilot_version.py
T
firestar5683 6daefdc0e1 versioning
2026-06-28 20:04:02 -05:00

14 lines
322 B
Python

STARPILOT_DISPLAY_VERSION = "6.7"
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)