From e0ff817332075fb169ff45f262f248021e3379a2 Mon Sep 17 00:00:00 2001 From: Jeff Bryner Date: Thu, 8 Oct 2015 13:21:59 -0700 Subject: [PATCH] fix dict2list to support embedded list of dicts, closes #297 --- mq/esworker.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mq/esworker.py b/mq/esworker.py index 60082607..cd184406 100755 --- a/mq/esworker.py +++ b/mq/esworker.py @@ -486,6 +486,9 @@ def dict2List(inObj): elif isinstance(v, list): for l in dict2List(v): yield l + elif isinstance(v,dict): + for d in dict2List(v): + yield d else: yield v else: