don't use "folder" ...

This commit is contained in:
Matthias
2019-07-31 06:54:45 +02:00
parent 0488525888
commit c3d14ab9b9
4 changed files with 6 additions and 6 deletions

View File

@@ -308,7 +308,7 @@ def generate_plot_filename(pair, ticker_interval) -> str:
return file_name
def store_plot_file(fig, filename: str, folder: Path, auto_open: bool = False) -> None:
def store_plot_file(fig, filename: str, directory: Path, auto_open: bool = False) -> None:
"""
Generate a plot html file from pre populated fig plotly object
:param fig: Plotly Figure to plot
@@ -317,7 +317,7 @@ def store_plot_file(fig, filename: str, folder: Path, auto_open: bool = False) -
:return: None
"""
folder.mkdir(parents=True, exist_ok=True)
directory.mkdir(parents=True, exist_ok=True)
plot(fig, filename=str(folder.joinpath(filename)),
plot(fig, filename=str(directory.joinpath(filename)),
auto_open=auto_open)