Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import datetime
- entries = [('CHG200005971065', {'Status': 'Pending', 'Category': 'Aplicaciones', 'Change ID+': 'CHG200005971065',
- 'Supervisor Name+': 'FULANO', 'Naturaleza': None, 'Implementor Name+': None,
- 'Region': 'Brasil', 'Supervisor Group+': 'SUPERVISORGROUP',
- 'Create-date': datetime.datetime(2017, 7, 18, 22, 59, 53), 'Summary': 'teste',
- 'Priority': 'P5', 'Item': 'Soporte', 'Entorno': 'Production',
- 'Requester Name+': 'siclano', 'Type': 'type for test'}),
- ('CHG200005971065',{'Status': 'Pending','Category': 'Aplicaciones','Change ID+': 'CHG200005971065',
- 'Supervisor Name+': 'FULANO','Naturaleza': None,'Implementor Name+': None,
- 'Region': 'Brasil','Supervisor Group+': 'SUPERVISORGROUP',
- 'Create-date': datetime.datetime(2017, 7, 18, 22, 59, 53),
- 'Summary': 'teste','Priority': 'P5','Item': 'Soporte','Entorno': 'Production',
- 'Requester Name+': 'siclano','Type': 'type for test'}),
- ('CHG200005971065', {'Status': 'Pending', 'Category': 'Aplicaciones', 'Change ID+': 'CHG200005971065',
- 'Supervisor Name+': 'FULANO', 'Naturaleza': None, 'Implementor Name+': None,
- 'Region': 'Brasil', 'Supervisor Group+': 'SUPERVISORGROUP',
- 'Create-date': datetime.datetime(2017, 7, 18, 22, 59, 53), 'Summary': 'teste',
- 'Priority': 'P5', 'Item': 'Soporte', 'Entorno': 'Production',
- 'Requester Name+': 'siclano', 'Type': 'type for test'})]
- list = []
- for entry_id, entry_values in entries:
- dic = {}
- for field, value in entry_values.items():
- dic[field] = value
- list.append((entry_id, dic))
- for i in list:
- print(i,'\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement