I have this function that pushes a dictionary created by another function, to a list. The problem I'm having with my code is that multiple pushes do not show up in the list each in a new line. I've tried many ways, but none have given me the desired results.
This is the line the pushes the created dictionary:
Database.xoomDatabase.append(ordenOrganiz)
This function creates the dictionary:
def orderZoom(self):
nombre = contents1
nicenum = orderResult
email = contents2
num = contents3
fechaentrega = contents5
global ordenOrganiz
ordenOrganiz = {"Num Orden": nicenum,
"Nombre": nombre,
"Email": email,
"Num Tel/Cel": num,
"Fecha de Entrega": fechaentrega}
return ordenOrganiz
Any ideas on getting this done?