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

Fix commit and redo causes Traceback #275

Closed PiispaH closed 10 months ago

PiispaH commented 10 months ago

Bringing back an item by redo that was previously removed by undo didn't work and caused a Traceback. Now it should work and no errors should be raised in this case.

Fixes spine-tools/Spine-Toolbox#2325

Checklist before merging

codecov-commenter commented 10 months ago

Codecov Report

Patch coverage has no change and project coverage change: -0.02% :warning:

Comparison is base (91ef8d8) 76.39% compared to head (fdf83ef) 76.38%. Report is 1 commits behind head on 0.8-dev.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## 0.8-dev #275 +/- ## =========================================== - Coverage 76.39% 76.38% -0.02% =========================================== Files 73 73 Lines 8817 8819 +2 Branches 1856 1857 +1 =========================================== Hits 6736 6736 - Misses 1754 1756 +2 Partials 327 327 ``` | [Files Changed](https://app.codecov.io/gh/spine-tools/Spine-Database-API/pull/275?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=spine-tools) | Coverage Δ | | |---|---|---| | [spinedb\_api/db\_cache\_base.py](https://app.codecov.io/gh/spine-tools/Spine-Database-API/pull/275?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=spine-tools#diff-c3BpbmVkYl9hcGkvZGJfY2FjaGVfYmFzZS5weQ==) | `88.10% <0.00%> (-0.35%)` | :arrow_down: |

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