From 8ba9748ad9e67f0817eb98c7cb530a8a03bf3018 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Fri, 2 Jun 2023 18:20:43 -0400 Subject: [PATCH] Parse and display sunnypilot changelogs --- selfdrive/ui/tests/cycle_offroad_alerts.py | 2 +- selfdrive/updated.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/tests/cycle_offroad_alerts.py b/selfdrive/ui/tests/cycle_offroad_alerts.py index 8a3d9ec45a..f2f3546b98 100755 --- a/selfdrive/ui/tests/cycle_offroad_alerts.py +++ b/selfdrive/ui/tests/cycle_offroad_alerts.py @@ -18,7 +18,7 @@ if __name__ == "__main__": while True: print("setting alert update") params.put_bool("UpdateAvailable", True) - r = open(os.path.join(BASEDIR, "RELEASES.md")).read() + r = open(os.path.join(BASEDIR, "CHANGELOGS.md")).read() r = r[:r.find('\n\n')] # Slice latest release notes params.put("UpdaterNewReleaseNotes", r + "\n") diff --git a/selfdrive/updated.py b/selfdrive/updated.py index 2cb7d1c13b..fc1f935549 100755 --- a/selfdrive/updated.py +++ b/selfdrive/updated.py @@ -70,7 +70,7 @@ def set_consistent_flag(consistent: bool) -> None: def parse_release_notes(basedir: str) -> bytes: try: - with open(os.path.join(basedir, "RELEASES.md"), "rb") as f: + with open(os.path.join(basedir, "CHANGELOGS.md"), "rb") as f: r = f.read().split(b'\n\n', 1)[0] # Slice latest release notes try: return bytes(MarkdownIt().render(r.decode("utf-8")), encoding="utf-8")