From 7934a4eef310934973bebc5c689cef54f3ccfc74 Mon Sep 17 00:00:00 2001 From: tryiou <73646876+tryiou@users.noreply.github.com> Date: Fri, 13 Oct 2023 15:59:40 +0200 Subject: [PATCH] Update plugin-adapter.py, function gethistory remove this as it break result type expected by xlite-daemon, daemon expect list of json, this if case return a json. --- plugin-adapter.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugin-adapter.py b/plugin-adapter.py index 4eb878b..443561e 100755 --- a/plugin-adapter.py +++ b/plugin-adapter.py @@ -644,8 +644,6 @@ async def gethistory(params): return json.dumps([]) - if len(res) == 1: - res = res[0] # DEBUG! PURGE EMPTY LISTS IN LIST? res = [e for e in res if e]