diff --git a/src/crkLacombeeng/resources/dictionary/crk-Lacombeeng_test_db.importjson b/src/crkLacombeeng/resources/dictionary/crk-Lacombeeng_test_db.importjson index 36b0b5d1c..bbe324f5a 100644 --- a/src/crkLacombeeng/resources/dictionary/crk-Lacombeeng_test_db.importjson +++ b/src/crkLacombeeng/resources/dictionary/crk-Lacombeeng_test_db.importjson @@ -8,7 +8,7 @@ "suffixes": "a" }, "paradigm": null, - "rw_domains": "", + "rw_domains": [], "rw_indices": {}, "senses": [ { @@ -28,7 +28,7 @@ "suffixes": "" }, "paradigm": null, - "rw_domains": "", + "rw_domains": [], "rw_indices": {}, "senses": [ { @@ -48,8 +48,8 @@ "suffixes": "TTAM, MIWEW, TCHIKEW" }, "paradigm": null, - "rw_domains": "", - "rw_indices": "", + "rw_domains": [], + "rw_indices": {}, "senses": [ { "definition": "he finds it useful, he thinks he likes to be of service, v.g. misiwe âbateyimâwok mistatimwok, horses are found useful everywhere; ayamihawin eoko piko osâm âbateyittamuk; only find religion useful, or, there is only one thing needed, religion.", @@ -68,7 +68,7 @@ "suffixes": "ok" }, "paradigm": null, - "rw_domains": "", + "rw_domains": [], "rw_indices": {}, "senses": [ { diff --git a/src/morphodict/lexicon/management/commands/importjsondict.py b/src/morphodict/lexicon/management/commands/importjsondict.py index 9c0a99a1e..d069ce42f 100644 --- a/src/morphodict/lexicon/management/commands/importjsondict.py +++ b/src/morphodict/lexicon/management/commands/importjsondict.py @@ -334,7 +334,7 @@ def run(self): if "rw_indices" in entry: rw_indices = "; ".join( - [index for list in entry.values() for index in list] + [index for list in entry["rw_indices"].values() for index in list] ) else: rw_indices = ""