From a27250e0ea11d49cb255b201bcc9a039f9cb226e Mon Sep 17 00:00:00 2001
From: Carsten Hinz <c.hinz@fz-juelich.de>
Date: Wed, 8 May 2024 14:08:27 +0200
Subject: [PATCH] fixed bug

---
 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 607dd0f..fec25bc 100644
--- a/toargridding/toar_rest_client.py
+++ b/toargridding/toar_rest_client.py
@@ -111,7 +111,7 @@ class Cache:
         
         if not cache_dir.exists():
             raise RuntimeError(f"Given directory for saving cache file does not exists. Path: {cache_dir}")
-        self.cache_file = cache_dir / fn / ".json"
+        self.cache_file = cache_dir / f"{fn}.json"
 
         if not self.cache_file.is_file():  # initialize cache with dummy values
             with open(self.cache_file, "w") as cache:
-- 
GitLab