Skip to content

Commit

Permalink
system management: correctly show channel the user is on
Browse files Browse the repository at this point in the history
This would incorrectly show 'origin/' if the user was on one of the defined
channels.

Signed-off-by: Dirk Hohndel <[email protected]>
  • Loading branch information
dirkhh committed Dec 25, 2024
1 parent fe51ab3 commit 22d98c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions release-notes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Changes since v2.2.4 include:
- system management page: don't offer an incorrect / non-existent 'origin/' channel for updates
- feeder homepage: small changes to declutter the page
- dietpi: new images support using ethernet with wifi configured (still needs reboot for ethernet to activate)
- statistics: send old version to adsb.im after update
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,7 @@ def extract_channel(self) -> str:
channel = match.group(1)
if channel in ["stable", "beta", "main"]:
channel = ""
if not channel.startswith("origin/"):
if channel and not channel.startswith("origin/"):
channel = f"origin/{channel}"
return channel

Expand Down

0 comments on commit 22d98c5

Please sign in to comment.