Skip to content

Commit 7934a4e

Browse files
authored
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.
1 parent 74be3b9 commit 7934a4e

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

plugin-adapter.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,8 +644,6 @@ async def gethistory(params):
644644

645645
return json.dumps([])
646646

647-
if len(res) == 1:
648-
res = res[0]
649647
# DEBUG! PURGE EMPTY LISTS IN LIST?
650648
res = [e for e in res if e]
651649

0 commit comments

Comments
 (0)