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: