This commit is contained in:
teh_coderer
2023-05-08 09:21:38 -04:00
parent 05664591b1
commit fbc7fae15c

View File

@@ -110,11 +110,11 @@ class Backend(PyWry):
self.init_engine: list = []
return pending
def get_plotly_html(self) -> Path:
def get_plotly_html(self) -> str:
"""Get the plotly html file."""
self.set_window_dimensions()
if self.plotly_html.exists():
return self.plotly_html
return str(self.plotly_html)
console.print(
"[bold red]plotly.html file not found, check the path:[/]"
@@ -123,11 +123,11 @@ class Backend(PyWry):
self.max_retries = 0 # pylint: disable=W0201
raise FileNotFoundError
def get_table_html(self) -> Path:
def get_table_html(self) -> str:
"""Get the table html file."""
self.set_window_dimensions()
if self.table_html.exists():
return self.table_html
return str(self.table_html)
console.print(
"[bold red]table.html file not found, check the path:[/]"
f"[green]{PLOTS_CORE_PATH / 'table.html'}[/]"