spine-tools / Spine-Database-API

Database interface to Spine generic data model
https://www.tools-for-energy-system-modelling.org/
GNU Lesser General Public License v3.0
6 stars 5 forks source link

Stop iterating import mappings when row gets skipped #407

Closed soininen closed 1 month ago

soininen commented 1 month ago

This PR fixes a bug where import_mappings would produce repeated mapped data in case there were rows that should have been skipped.

Fixes spine-tools/Spine-Toolbox#2749

Checklist before merging

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 78.19%. Comparing base (7a2db7f) to head (5283a0a).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #407 +/- ## ========================================== - Coverage 78.21% 78.19% -0.02% ========================================== Files 76 76 Lines 9509 9510 +1 Branches 2016 2016 ========================================== - Hits 7437 7436 -1 - Misses 1737 1738 +1 - Partials 335 336 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.