jzohrab / lute

DEPRECATED: LUTE (Learning Using Texts) is a self-hosted web app for learning language through reading, based on Learning with Texts (LWT)
The Unlicense
118 stars 10 forks source link

Handle dups, and multiple parents, in the import mapping file #40

Closed jzohrab closed 1 year ago

jzohrab commented 1 year ago

I'm not sure what happens if the parent mapping file contains dups, it doesn't look like it will handle it well.

eg

cat     cats
cat     cats

Also, the code may have problems if the same term is mapped to different parents -- eg a fake example:

parent     somechild
child        somechild

should only import the mapping once. Add a check and test.

jzohrab commented 1 year ago

Fixed in the develop branch. :-/ Blarg, bug.