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

Make restore_items() consistent with remove_items() #424

Closed soininen closed 5 days ago

soininen commented 5 days ago

DatabaseMapping.restore_items() now returns restored items and errors like DatabaseMapping.remove_items() does.

Re spine-tools/Spine-Toolbox#2861

Checklist before merging

codecov[bot] commented 5 days ago

Codecov Report

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

Project coverage is 78.29%. Comparing base (7422f1b) to head (b723ce8).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #424 +/- ## ========================================== + Coverage 78.27% 78.29% +0.02% ========================================== Files 72 72 Lines 9577 9575 -2 Branches 2045 2044 -1 ========================================== + Hits 7496 7497 +1 + Misses 1741 1738 -3 Partials 340 340 ```

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