Report rendering can't handle save path for users that have a period (.) in username (#4235)

* fix reports not recognize dot path

* Formattiing

---------

Co-authored-by: Yong Sheng Tan <yongsheng.tan@shareinvestor.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
This commit is contained in:
Tan Yong Sheng
2023-02-14 23:17:14 +08:00
committed by GitHub
parent d6ab0007e3
commit 5705675218

View File

@@ -282,8 +282,8 @@ def create_output_path(input_path: str, parameters_dict: Dict[str, Any]) -> str:
+ "_"
+ f"{report_name}{args_to_output}"
)
output_path = report_output_name.replace(".", "_")
output_path = str(USER_REPORTS_DIRECTORY / report_output_name)
output_path = output_path.replace(".", "_")
return output_path