HugoFara / lwt

Learn languages by reading! A language learning app stemmed from Learning with Texts (LWT).
https://hugofara.github.io/lwt/
The Unlicense
169 stars 19 forks source link

Why isn't Delete used here? #151

Closed ProgramComputer closed 10 months ago

ProgramComputer commented 1 year ago

https://github.com/HugoFara/lwt/blob/d8e22588ffeebb67f3623de113e9fa342af3749f/edit_languages.php#L148

There could be an issue for unsupported languages. Create two unsupported languages possible with #150 and delete both or delete two supported languages. The second language can't be deleted due to duplicate key error.

Error message below -

Screenshot 2023-12-27 163329
HugoFara commented 10 months ago

I can't see any reason, and it creates a bug. A just added the delete instruction and works fine.