From 6a1a90e7536477e046e76932c66634a37b7d278a Mon Sep 17 00:00:00 2001 From: louie Date: Sun, 29 Jul 2018 16:11:50 +0800 Subject: [PATCH] Convert iterator to list to make it JSON serializable. --- AnkiConnect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AnkiConnect.py b/AnkiConnect.py index ef21508..51658a2 100644 --- a/AnkiConnect.py +++ b/AnkiConnect.py @@ -489,7 +489,7 @@ class AnkiConnect: @api() def multi(self, actions): - return map(self.handler, actions) + return list(map(self.handler, actions)) #