bruvellu / cifonauta

Marine biology image database by CEBIMar/USP
http://cifonauta.cebimar.usp.br
GNU General Public License v3.0
21 stars 5 forks source link

Fix/integrity error #288

Closed Felyppe1 closed 5 months ago

Felyppe1 commented 5 months ago

In this pull request, I've solved the Integry Error that occurred due to a problemb when saving new entries to the database. Previously, It saved the entry first, then normalized its name and attempted to save again, resulting in an error if there was an entry with the same name in the first place. I fixed this section of the code and additionally implemented API's for saving new entries, eliminating the need for page reloads and consequently improving the user experience. I also removed the status filter on the Editing media list page, since there is only one status on that page.