Thread safe internal PIO Core calling for PIO Home

This commit is contained in:
Ivan Kravets
2019-07-01 20:39:52 +03:00
parent dfca7f0b68
commit bf77d70d82
3 changed files with 50 additions and 23 deletions

View File

@@ -182,7 +182,7 @@ def platform_frameworks(query, json_output):
for framework in util.get_api_result("/frameworks", cache_valid="7d"):
if query == "all":
query = ""
search_data = framework
search_data = dump_json_to_unicode(framework)
if query and query.lower() not in search_data.lower():
continue
framework['homepage'] = ("https://platformio.org/frameworks/" +