From 9deb8717a0961d6656f9c7987e0acc7930b6b822 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Tue, 30 Jul 2024 14:02:49 +0200
Subject: [PATCH] Fix path for QA files on S3

---
 SAS/TMSS/backend/src/tmss/tmssapp/subtasks.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SAS/TMSS/backend/src/tmss/tmssapp/subtasks.py b/SAS/TMSS/backend/src/tmss/tmssapp/subtasks.py
index 966925f260c..a304bffa008 100644
--- a/SAS/TMSS/backend/src/tmss/tmssapp/subtasks.py
+++ b/SAS/TMSS/backend/src/tmss/tmssapp/subtasks.py
@@ -1467,7 +1467,7 @@ def schedule_qastatistics_subtask(qastats_subtask: Subtask):
             for stat_type in ('xst', 'bst', 'sst'):
                 # filename as constructed in stingray/infra/jobs/central/aggregate.levant.nomad
                 qastats_subtask_dataproducts.append(Dataproduct(filename="L%s_%s_%s_%s.h5" % (observation_subtask.id, station, field, stat_type),
-                                                                directory=os.path.join(directory, stat_type),
+                                                                directory=os.path.join(directory, "L%s" % (observation_subtask.id,), stat_type),
                                                                 dataformat=dataformat,
                                                                 datatype=datatype,
                                                                 producer=qastats_output,
-- 
GitLab