Skip to content
Snippets Groups Projects
Verified Commit 82a26d60 authored by Marco Aceti's avatar Marco Aceti
Browse files

Add .html suffix to detect_lines and trajectories_map temporary files

parent 5f53b7b0
Branches master
No related tags found
No related merge requests found
Pipeline #3601 passed
......@@ -184,6 +184,6 @@ def detect_lines(df: pd.DataFrame, st: pd.DataFrame) -> None:
maxBytes=2**17,
)
outfile = NamedTemporaryFile(delete=False)
outfile = NamedTemporaryFile(delete=False, suffix=".html")
outfile.write(html.encode("utf-8"))
webbrowser.open(outfile.name)
......@@ -362,7 +362,7 @@ def build_map(st: pd.DataFrame, df: pd.DataFrame) -> None:
m.get_root().add_child(macro)
# Save the map to a temporary file and open it with a web browser
outfile = NamedTemporaryFile(delete=False)
outfile = NamedTemporaryFile(delete=False, suffix=".html")
m.save(outfile.file)
webbrowser.open(outfile.name)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment