integrate namechanges that are slated for 2021-07-01

cf. ppl_v490_partner.csv
This commit is contained in:
Georg Sauthoff 2021-06-13 18:57:38 +02:00
parent a169a2e2b3
commit 3e2dcb8dab
2 changed files with 17 additions and 14 deletions

View File

@ -49,12 +49,15 @@ def main(csv_filename, json_filename, filename):
p['international'] = inter p['international'] = inter
if weight != oweight: if weight != oweight:
print(f'Weight of {name} ({key}) changed: {oweight} -> {weight} (from {row["PROD_GUEAB"]})') print(f'Weight of {name} ({key}) changed: {oweight} -> {weight} (from {row["PROD_GUEAB"]})')
c = True # as approximation, use old one ...
p['max_weight'] = weight if weight:
# The names returned by the ProdWS differ from the ones included in the PPL ... c = True
# if name != oname: p['max_weight'] = weight
# print(f'Name of {name} ({key}) changed: {oname} -> {name} (from {row["PROD_GUEAB"]})') # The names returned by the ProdWS might differ from the ones included in the PPL ...
# c = True if name != oname:
print(f'Name of {name} ({key}) changed:\n{oname} ->\n{name} (from {row["PROD_GUEAB"]})')
c = True
p['name'] = name
if c: if c:
print('*'*75) print('*'*75)
else: else:

View File

@ -87,7 +87,7 @@
"cost_price": "0.95", "cost_price": "0.95",
"international": true, "international": true,
"max_weight": "15", "max_weight": "15",
"name": "Postkarte Intern." "name": "Postkarte Intern. GK"
}, },
"1022": { "1022": {
"cost_price": "3.75", "cost_price": "3.75",
@ -309,37 +309,37 @@
"cost_price": "7.1", "cost_price": "7.1",
"international": false, "international": false,
"max_weight": "2000", "max_weight": "2000",
"name": "Maxibrief Integral + EINSCHREIBEN EINWURF + Zusatzentgelt MBf" "name": "Maxibrief Integral + Zusatzentgelt MBf + EINSCHREIBEN EINWURF"
}, },
"1047": { "1047": {
"cost_price": "7.4", "cost_price": "7.4",
"international": false, "international": false,
"max_weight": "2000", "max_weight": "2000",
"name": "Maxibrief Integral + EINSCHREIBEN + Zusatzentgelt MBf" "name": "Maxibrief Integral + Zusatzentgelt MBf + EINSCHREIBEN"
}, },
"1049": { "1049": {
"cost_price": "9.6", "cost_price": "9.6",
"international": false, "international": false,
"max_weight": "2000", "max_weight": "2000",
"name": "Maxibrief Integral + EINSCHREIBEN + EIGENHÄNDIG + Zusatzentgelt MBf" "name": "Maxibrief Integral + Zusatzentgelt MBf + EINSCHREIBEN + EIGENHÄNDIG"
}, },
"1052": { "1052": {
"cost_price": "2.8", "cost_price": "2.8",
"international": false, "international": false,
"max_weight": "15", "max_weight": "15",
"name": "Postkarte Einschreiben Einwurf" "name": "Postkarte Integral + EINSCHREIBEN EINWURF"
}, },
"1057": { "1057": {
"cost_price": "3.1", "cost_price": "3.1",
"international": false, "international": false,
"max_weight": "15", "max_weight": "15",
"name": "Postkarte Einschreiben" "name": "Postkarte Integral + EINSCHREIBEN"
}, },
"1059": { "1059": {
"cost_price": "5.3", "cost_price": "5.3",
"international": false, "international": false,
"max_weight": "15", "max_weight": "15",
"name": "Postkarte Einsch+Eigh" "name": "Postkarte Integral + EINSCHREIBEN + EIGENHÄNDIG"
}, },
"11": { "11": {
"cost_price": "0.95", "cost_price": "0.95",
@ -381,7 +381,7 @@
"cost_price": "4.45", "cost_price": "4.45",
"international": true, "international": true,
"max_weight": "15", "max_weight": "15",
"name": "Postkarte Intern. Einschreiben" "name": "Postkarte Intern. GK Integral + EINSCHREIBEN"
}, },
"195": { "195": {
"cost_price": "1.8", "cost_price": "1.8",