From ac510c1553713884f1d81f98d29ed5fdb0e79073 Mon Sep 17 00:00:00 2001 From: ShahRustam Date: Sat, 9 May 2020 16:35:21 +0300 Subject: [PATCH] fix summary caching (#3500) --- platformio/commands/account/client.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platformio/commands/account/client.py b/platformio/commands/account/client.py index b25365c0..825c57d4 100644 --- a/platformio/commands/account/client.py +++ b/platformio/commands/account/client.py @@ -222,7 +222,11 @@ class AccountClient(object): ) result = self.raise_error_from_response(response) account["summary"] = dict( - **result, expire_at=int(time.time()) + self.SUMMARY_CACHE_TTL + profile=result.get("profile"), + packages=result.get("packages"), + subscriptions=result.get("subscriptions"), + user_id=result.get("user_id"), + expire_at=int(time.time()) + self.SUMMARY_CACHE_TTL, ) app.set_state_item("account", account) return result