From 97f69cd2c7ca94601473b847f80af76a17786e84 Mon Sep 17 00:00:00 2001
From: Simon Grasse <s.grasse@fz-juelich.de>
Date: Wed, 24 Apr 2024 15:12:52 +0200
Subject: [PATCH] fix: get correct database sample file location

---
 toargridding/toar_rest_client.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toargridding/toar_rest_client.py b/toargridding/toar_rest_client.py
index ec51f85..76dca15 100644
--- a/toargridding/toar_rest_client.py
+++ b/toargridding/toar_rest_client.py
@@ -209,4 +209,4 @@ class AnalysisServiceDownload(AnalysisService):
 
     @staticmethod
     def get_sample_file_name(metadata: Metadata):
-        return f"data/{metadata.statistic}_{metadata.time.sampling}_{metadata.time.start.date()}_{metadata.time.end.date()}.zip"
+        return f"{metadata.statistic}_{metadata.time.sampling}_{metadata.time.start.date()}_{metadata.time.end.date()}.zip"
-- 
GitLab