oss-slu / Mouser

GNU General Public License v3.0
1 stars 7 forks source link

Animal ID after Deletion #143

Closed rc10283 closed 11 months ago

rc10283 commented 1 year ago

Fixes #124

After Deleting an entry, the animal ID now correlates to the correct number of entries. Before, if you deleted item number four, the next entry would be item five. Now it would display the next entry correctly as item number four.

I changed the map_rfid page to correlate to the animal_id.

It was changed because the prior delete method was not doing its job. If you had deleted an item for an experiment with 12 animals, it would only allow you to have 11 animals in the experiment. As the program added when the next number after deletion would read that the max number of animals was reached.

Added a method to find the correct value of the animal_id after removal.

Screen Shot 2023-11-20 at 12 38 43 PM Screen Shot 2023-11-20 at 12 38 31 PM Screen Shot 2023-11-20 at 12 38 23 PM
loganwyas commented 1 year ago

@rc10283 When I delete one of the animal IDs that isn't the last entry, I run into the following issues:

image This error appears after deletion.

image The IDs are repeated when adding a new entry