diff --git a/src/astra/frontend/telemetry_view.py b/src/astra/frontend/telemetry_view.py index 4f76109..e314aa7 100644 --- a/src/astra/frontend/telemetry_view.py +++ b/src/astra/frontend/telemetry_view.py @@ -145,7 +145,7 @@ def refresh_data_table(self) -> None: This method wipes the data from the dashboard table and re-inserts the new values """ - if self.controller.get_table_entries(): + if self.controller.get_table_entries() is not None: self.change_frame_navigation_text() for item in self.dashboard_table.get_children(): self.dashboard_table.delete(item) diff --git a/src/astra/usecase/request_receiver.py b/src/astra/usecase/request_receiver.py index 280fa50..c0d0345 100644 --- a/src/astra/usecase/request_receiver.py +++ b/src/astra/usecase/request_receiver.py @@ -351,13 +351,13 @@ def load_file(cls, file: str, dm: DataManager) -> None: """ @classmethod - def get_table_entries(cls) -> list[list]: + def get_table_entries(cls) -> list[list] | None: """ Returns the table entries from the previous call to or :return: the table entries from the previous call to or """ if cls.previous_data is None: - return [] + return None else: return cls.previous_data.table