mirror of
https://github.com/dw-0/kiauh.git
synced 2026-04-06 09:45:15 +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):
|
class LogUploadMenu(BaseMenu):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.logfile_list = get_logfile_list()
|
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__(
|
super().__init__(
|
||||||
header=True,
|
header=True,
|
||||||
options=options,
|
options=options,
|
||||||
@@ -49,5 +49,4 @@ class LogUploadMenu(BaseMenu):
|
|||||||
print(menu, end="")
|
print(menu, end="")
|
||||||
|
|
||||||
def upload(self, **kwargs):
|
def upload(self, **kwargs):
|
||||||
index = int(kwargs.get("opt_index"))
|
upload_logfile(self.logfile_list[kwargs.get("opt_index")])
|
||||||
upload_logfile(self.logfile_list[index])
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ class ExtensionsMenu(BaseMenu):
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.extensions = self.discover_extensions()
|
self.extensions = self.discover_extensions()
|
||||||
super().__init__(
|
super().__init__(
|
||||||
header=False,
|
header=True,
|
||||||
options=self.get_options(),
|
options=self.get_options(),
|
||||||
footer_type=BACK_FOOTER,
|
footer_type=BACK_FOOTER,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user