mirror of
https://github.com/dw-0/kiauh.git
synced 2026-04-03 08:15:14 +05:00
Compare commits
1 Commits
8808add217
...
1939887983
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1939887983 |
@@ -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 = {f"{index}": self.upload for index in range(len(self.logfile_list))}
|
||||
options = {index: self.upload for index in range(len(self.logfile_list))}
|
||||
super().__init__(
|
||||
header=True,
|
||||
options=options,
|
||||
@@ -49,5 +49,4 @@ class LogUploadMenu(BaseMenu):
|
||||
print(menu, end="")
|
||||
|
||||
def upload(self, **kwargs):
|
||||
index = int(kwargs.get("opt_index"))
|
||||
upload_logfile(self.logfile_list[index])
|
||||
upload_logfile(self.logfile_list[kwargs.get("opt_index")])
|
||||
|
||||
@@ -26,7 +26,7 @@ class ExtensionsMenu(BaseMenu):
|
||||
def __init__(self):
|
||||
self.extensions = self.discover_extensions()
|
||||
super().__init__(
|
||||
header=False,
|
||||
header=True,
|
||||
options=self.get_options(),
|
||||
footer_type=BACK_FOOTER,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user