add ui description helper to build_metadata (#32113)

add ui_description
old-commit-hash: c95404d564
pull/32199/head
Justin Newberry 1 year ago committed by GitHub
parent 5c1d90aaf3
commit 8a39433d7e
  1. 4
      system/version.py

@ -108,6 +108,10 @@ class BuildMetadata:
def canonical(self) -> str:
return f"{self.openpilot.version}-{self.openpilot.git_commit}-{self.openpilot.build_style}"
@property
def ui_description(self) -> str:
return f"{self.openpilot.version} / {self.openpilot.git_commit[:6]} / {self.channel}"
def build_metadata_from_dict(build_metadata: dict) -> BuildMetadata:
channel = build_metadata.get("channel", "unknown")

Loading…
Cancel
Save