Commit 1db1e932 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update Record._get to fix a missing case.

parent cb34d638
......@@ -73,7 +73,10 @@ class Record(dict):
val = []
for el in self[field]:
if subfield in el:
val.append(el[subfield])
if isinstance(el[subfield], list):
val.extend(el[subfield])
else:
val.append(el[subfield])
if force_list and not isinstance(val, list):
if val:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment