clld / glottolog3

glottolog2 re-implemented as CLLD app
MIT License
108 stars 25 forks source link

Fix duplicate lgcode note #126

Closed xrotwang closed 4 years ago

xrotwang commented 4 years ago

Formatting languages for sources with a glottocode in the lgcode field (e.g. https://glottolog.org/resource/reference/id/110600 ) duplicates the field.

This is because the dict in which language IDs are looked up - see https://github.com/clld/glottolog3/blob/e3cb24599e2fc6ae761de92cb9a2c873a2dcd86a/glottolog3/util.py#L288 does not have the glottocodes as keys.