From d285e7479754fb3bbfad87d255604bd3462de66c Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Fri, 21 Jul 2023 14:21:14 +0200 Subject: [PATCH] Small fixes for auszahlung.py --- wgmaster/auszahlung.py | 2 +- wgmaster/migrate.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wgmaster/auszahlung.py b/wgmaster/auszahlung.py index 2b09ee7..eb09c45 100755 --- a/wgmaster/auszahlung.py +++ b/wgmaster/auszahlung.py @@ -45,7 +45,7 @@ def main() -> None: plt.plot(c.keys(), c.values()) plt.legend(['\n'.join(a) for a in names], fontsize=8) plt.xlabel('Gradation [°Oe]') - plt.ylabel('Betrag [€]') + plt.ylabel('Betrag [€/kg]') plt.vlines([55, 68, 73, 84], 0.0, 1.5, colors='black') plt.xlim([50, 120]) plt.ylim([0.0, 1.5]) diff --git a/wgmaster/migrate.py b/wgmaster/migrate.py index eadcb42..e18c9a5 100755 --- a/wgmaster/migrate.py +++ b/wgmaster/migrate.py @@ -1438,7 +1438,7 @@ def migrate_payments(in_dir: str, out_dir: str) -> None: } azs = data['AuszahlungSorten'] - for s in sort_map[p['AZNR']]: + for s in sort_map.get(p['AZNR'], []): del s['AZNR'] del s['ID'] if s['Oechsle'] is None: