Skip to content

Commit

Permalink
Merge pull request #88 from qlrd/main
Browse files Browse the repository at this point in the history
v0.0.20-alpha-3
  • Loading branch information
qlrd authored Sep 26, 2024
2 parents b4d5585 + f9febac commit f1e6fb5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions e2e/test_008_about_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_render_main_screen(self, mock_get_locale):

text = "".join(
[
"[ref=SourceCode][b]v0.0.20-alpha-2[/b][/ref]",
"[ref=SourceCode][b]v0.0.20-alpha-3[/b][/ref]",
"\n",
"\n",
"follow us on X: ",
Expand Down Expand Up @@ -80,7 +80,7 @@ def test_update_locale(self, mock_get_locale):

text = "".join(
[
"[ref=SourceCode][b]v0.0.20-alpha-2[/b][/ref]",
"[ref=SourceCode][b]v0.0.20-alpha-3[/b][/ref]",
"\n",
"\n",
"siga-nos no X: ",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ prefer-active-python = true

[tool.poetry]
name = "krux-installer"
version = "0.0.20-alpha-2"
version = "0.0.20-alpha-3"
description = "A GUI based application to flash Krux firmware on K210 based devices"
authors = [
"qlrd <[email protected]>"
Expand Down
6 changes: 5 additions & 1 deletion src/app/screens/select_device_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ def on_update():
):
cleanre = re.compile("\\[.*?\\]")
clean_text = re.sub(cleanre, "", value)
if device not in VALID_DEVICES_VERSIONS[clean_text]:
if (
# pylint: disable=consider-iterating-dictionary
clean_text in VALID_DEVICES_VERSIONS.keys()
and device not in VALID_DEVICES_VERSIONS[clean_text]
):
self.ids[f"select_device_{device}"].text = "".join(
["[color=#333333]", device, "[/color]"]
)
Expand Down
1 change: 1 addition & 0 deletions src/utils/constants/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
ROOT_DIRNAME = os.path.abspath(os.path.dirname(__file__))

VALID_DEVICES_VERSIONS = {
"v24.09.1": ["m5stickv", "amigo", "dock", "bit", "yahboom", "cube", "wonder_mv"],
"v24.09.0": ["m5stickv", "amigo", "dock", "bit", "yahboom", "cube", "wonder_mv"],
"v24.07.0": ["m5stickv", "amigo", "dock", "bit", "yahboom", "cube"],
"v24.03.0": ["m5stickv", "amigo", "dock", "bit", "yahboom"],
Expand Down

0 comments on commit f1e6fb5

Please sign in to comment.