Hello guys,
P.S.:
I know it has nothing to do with Pythonista, but I need your help
I‘ve got an Dict problem and the german Python-Forum couden‘t help me in this case i Hope anyone of you can do it.....
But my english is really not the best for That to explain it correct sorry for that
I Use this Dict (when it is Bad and there is a Better way Tell me please) to Save my content.
My plan is Now to sort That Dict for the Key structure but i have no idea How and whether it works at all....
This is wrong (this is my file):
customer_folder = {
'Kunden Übersicht': {
'structure': {
2: {},
'01_Beschreibung': {
'Beschriftung Verteilungen.smg': {},
'Beschriftung Verteilungen.xlsx': {},
},
},
'structure': {
1: {},
'02_Materiallisten': {
'Projekt-name': {
'Eintragungen': {},
'Geschlossen': {},
'Zwischenrechnung': {},
},
},
},
'structure': {
3: {},
'03_Prüfungen': {},
},
'04_KNX': {
'structure': {
4
},
},
'05_Bilder': {
'structure': {
5
},
},
'06_Notizen': {
'structure': {
6
},
},
'07_Datenbank': {
'structure': {
7
},
},
}
}
This is how i want it (this is needed when i read the file):
customer_folder = {
'Kunden Übersicht': {
'structure': {
1: {},
'02_Materiallisten': {
'Projekt-name': {
'Eintragungen': {},
'Geschlossen': {},
'Zwischenrechnung': {},
},
},
},
'structure': {
2: {},
'01_Beschreibung': {
'Beschriftung Verteilungen.smg': {},
'Beschriftung Verteilungen.xlsx': {},
},
},
'structure': {
3: {},
'03_Prüfungen': {},
},
'04_KNX': {
'structure': {
4
},
},
'05_Bilder': {
'structure': {
5
},
},
'06_Notizen': {
'structure': {
6
},
},
'07_Datenbank': {
'structure': {
7
},
},
}
}
I would be very happy if one of you could help me.