draft: outline of better select

This commit is contained in:
2024-05-27 15:50:04 +02:00
parent 5cdd4fb6a9
commit a0e42fc6ee
4 changed files with 75 additions and 16 deletions

View File

@@ -91,7 +91,9 @@ class CliDownloader:
self.page_dict = dict()
print()
print(self.current_results.pprint())
"""
page_count = 0
for option in self.current_results.formatted_generator():
if isinstance(option, ResultOption):
@@ -106,10 +108,13 @@ class CliDownloader:
self.page_dict[option.__name__] = option
page_count += 1
"""
print()
def set_current_options(self, current_options: Results):
def set_current_options(self, current_options: Generator[DatabaseObject, None, None]):
current_options = components.DataObjectSelect(current_options)
if main_settings["result_history"]:
self._result_history.append(current_options)