WIP lookup commands
This commit is contained in:
parent
4b647f23a0
commit
e06c03552c
|
@ -338,7 +338,7 @@ def flatten_stack( data ):
|
|||
|
||||
def flatten( obj ):
|
||||
if type(obj) == dict:
|
||||
key = obj.keys()[0]
|
||||
key = obj.keys()[0] if obj.keys()[0] != 'file' else obj.keys()[1]
|
||||
flat.append( key )
|
||||
for field in obj[key].keys():
|
||||
flatten( obj[key][field] )
|
||||
|
|
Loading…
Reference in New Issue