From cbb7869da18c50539ed84732dd626919927e6213 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 12 Nov 2019 13:09:35 +0200 Subject: [PATCH] Fixed an issue with the broken latest news for PIO Home --- HISTORY.rst | 1 + platformio/commands/home/rpc/handlers/misc.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 36b638be..0c25869e 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -10,6 +10,7 @@ PlatformIO Core 4.0 ~~~~~~~~~~~~~~~~~~ * Handle project configuration (monitor, test, and upload options) for PIO Remote commands (`issue #2591 `_) +* Fixed an issue with the broken latest news for PIO Home 4.1.0 (2019-11-07) ~~~~~~~~~~~~~~~~~~ diff --git a/platformio/commands/home/rpc/handlers/misc.py b/platformio/commands/home/rpc/handlers/misc.py index 992eeebe..7458500e 100644 --- a/platformio/commands/home/rpc/handlers/misc.py +++ b/platformio/commands/home/rpc/handlers/misc.py @@ -23,7 +23,7 @@ from platformio.commands.home.rpc.handlers.os import OSRPC class MiscRPC(object): def load_latest_tweets(self, data_url): - cache_key = data_url + cache_key = app.ContentCache.key_from_args(data_url) cache_valid = "7d" with app.ContentCache() as cc: cache_data = cc.get(cache_key)