Skip to content

Commit

Permalink
add ui description helper to build_metadata (commaai#32113)
Browse files Browse the repository at this point in the history
add ui_description
  • Loading branch information
jnewb1 authored Apr 5, 2024
1 parent 8be1a0e commit c95404d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions system/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ def release_channel(self) -> bool:
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")
Expand Down

0 comments on commit c95404d

Please sign in to comment.