From 9f60c4c9b24b40f39e8a9c5f2721fc4f5c8b56aa Mon Sep 17 00:00:00 2001 From: Marvin Elsen Date: Fri, 11 Oct 2024 20:37:16 +0200 Subject: [PATCH] Put CC-CEDICT surname definitions at the end of the list --- .../kotlin/com/marvinelsen/willow/database/CreateDatabase.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/marvinelsen/willow/database/CreateDatabase.kt b/src/main/kotlin/com/marvinelsen/willow/database/CreateDatabase.kt index 96f3fd1..dd723a9 100644 --- a/src/main/kotlin/com/marvinelsen/willow/database/CreateDatabase.kt +++ b/src/main/kotlin/com/marvinelsen/willow/database/CreateDatabase.kt @@ -70,7 +70,7 @@ fun main() { ) { it.format(TransliterationSystem.PINYIN_WITH_TONE_NUMBERS).lowercase() }}" }.entries.forEach { entries -> val entry = entries.value.first() - val definitions = entries.value.flatMap { it.definitions } + val definitions = entries.value.reversed().flatMap { it.definitions } try { insertStatement.setString(1, entry.traditional)