Compare commits

..

3 Commits

Author SHA1 Message Date
dw-0
e3a6d8a0ab README.md: add contributor section
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2024-03-23 21:18:11 +01:00
dw-0
0183988d5d fix(LogUpload): fix bug in menu options
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2024-03-23 18:40:35 +01:00
dw-0
03c3ed20f3 refactor: disable header printing in extension menu
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2024-03-23 17:55:25 +01:00
3 changed files with 15 additions and 4 deletions

View File

@@ -158,7 +158,7 @@ prompt and confirm by hitting ENTER.
</tr>
<tr>
<th><a href="https://github.com/Clon1998/mobileraker_companion"><img src="https://raw.githubusercontent.com/Clon1998/mobileraker/master/assets/icon/mr_appicon.png" alt="OctoEverywhere Logo" height="64"></th>
<th><a href="https://github.com/Clon1998/mobileraker_companion"><img src="https://raw.githubusercontent.com/Clon1998/mobileraker/master/assets/icon/mr_appicon.png" alt="OctoEverywhere Logo" height="64"></a></th>
<th><a href="https://octoeverywhere.com/?source=kiauh_readme"><img src="https://octoeverywhere.com/img/logo.svg" alt="OctoEverywhere Logo" height="64"></a></th>
<th></th>
</tr>
@@ -174,6 +174,16 @@ prompt and confirm by hitting ENTER.
<hr>
<h2 align="center">🎖️ Contributors 🎖️</h2>
<div align="center">
<a href="https://github.com/dw-0/kiauh/graphs/contributors">
<img src="https://contrib.rocks/image?repo=dw-0/kiauh" alt=""/>
</a>
</div>
<hr>
<h2 align="center">✨ Credits ✨</h2>
* A big thank you to [lixxbox](https://github.com/lixxbox) for that awesome KIAUH-Logo!

View File

@@ -20,7 +20,7 @@ from utils.constants import RESET_FORMAT, COLOR_YELLOW
class LogUploadMenu(BaseMenu):
def __init__(self):
self.logfile_list = get_logfile_list()
options = {index: self.upload for index in range(len(self.logfile_list))}
options = {f"{index}": self.upload for index in range(len(self.logfile_list))}
super().__init__(
header=True,
options=options,
@@ -49,4 +49,5 @@ class LogUploadMenu(BaseMenu):
print(menu, end="")
def upload(self, **kwargs):
upload_logfile(self.logfile_list[kwargs.get("opt_index")])
index = int(kwargs.get("opt_index"))
upload_logfile(self.logfile_list[index])

View File

@@ -26,7 +26,7 @@ class ExtensionsMenu(BaseMenu):
def __init__(self):
self.extensions = self.discover_extensions()
super().__init__(
header=True,
header=False,
options=self.get_options(),
footer_type=BACK_FOOTER,
)