From 81d6d5ad833d5241648f5d1fc5c87d4bb703e61c Mon Sep 17 00:00:00 2001 From: phil Date: Tue, 7 May 2024 09:24:27 +0200 Subject: [PATCH] Dashboard: fix createion of dir for attachments --- src/gisaf/models/dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gisaf/models/dashboard.py b/src/gisaf/models/dashboard.py index 4e6bc88..7634744 100644 --- a/src/gisaf/models/dashboard.py +++ b/src/gisaf/models/dashboard.py @@ -169,7 +169,7 @@ class DashboardPage(DashboardPageCommon, DashboardPageMetaData, table=True): Make sure the directory exists, before saving the file """ dir_name = Path(conf.dashboard.base_storage_dir) / self.group - dir_name.mkdir(exist_ok=True) + dir_name.mkdir(parents=True, exist_ok=True) return dir_name def get_attachment_file_name(self):