From cc31d7c2f66f319055b95328718d171ac81ac18d Mon Sep 17 00:00:00 2001 From: yuta100101 <66307698+yuta100101@users.noreply.github.com> Date: Thu, 12 May 2022 18:29:47 +0900 Subject: [PATCH] Fix: S3Client.get_tasks (#50) Co-authored-by: Yuta Uchida --- thunderbolt/client/s3_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thunderbolt/client/s3_client.py b/thunderbolt/client/s3_client.py index 3401662..aa00d6b 100644 --- a/thunderbolt/client/s3_client.py +++ b/thunderbolt/client/s3_client.py @@ -34,7 +34,7 @@ def get_tasks(self) -> List[Dict[str, Any]]: n = n.split('_') if self.use_cache: - cache = self.local_cache.get(x['key']) + cache = self.local_cache.get(x['Key']) if cache: tasks_list.append(cache) continue @@ -49,7 +49,7 @@ def get_tasks(self) -> List[Dict[str, Any]]: } tasks_list.append(params) if self.use_cache: - self.local_cache.dump(x['key'], params) + self.local_cache.dump(x['Key'], params) except Exception: continue