home Page History


saida = dict()
for element in results:
    for grupo in element.keys():
        if grupo != '_metadata':
            saida[grupo][element[grupo][grupo + '_item']] = element[grupo][grupo + '_amount']


saida = {
    'win32_processor': {
        'asdadsad': 1
        'fdsfsdhgds': 2
    }
}

Last edited by Eduardo