From d05c38050438d8717403a27c8e5c7a5a6a76cbfb Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 25 Jan 2023 12:50:29 +0300 Subject: fix(corp/data-import): `rank` is an integer field Change-Id: Ifc9cd46e5b5521096db19628bd8bcf026106dcc9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7926 Reviewed-by: tazjin Autosubmit: tazjin Tested-by: BuildkiteCI --- corp/russian/data-import/src/db_setup.rs | 2 +- corp/russian/data-import/src/or_parser.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'corp/russian') diff --git a/corp/russian/data-import/src/db_setup.rs b/corp/russian/data-import/src/db_setup.rs index 21cfb2a4652e..c9fb51738651 100644 --- a/corp/russian/data-import/src/db_setup.rs +++ b/corp/russian/data-import/src/db_setup.rs @@ -177,7 +177,7 @@ CREATE TABLE or_words ( bare TEXT NOT NULL, accented TEXT, derived_from_word_id INTEGER, - rank TEXT, + rank INTEGER, word_type TEXT, level TEXT ) STRICT; diff --git a/corp/russian/data-import/src/or_parser.rs b/corp/russian/data-import/src/or_parser.rs index eace850c24eb..8bfc61dbef48 100644 --- a/corp/russian/data-import/src/or_parser.rs +++ b/corp/russian/data-import/src/or_parser.rs @@ -19,7 +19,7 @@ pub struct Word { pub bare: String, // TODO: unknown pub accented: String, // TODO: unknown pub derived_from_word_id: Option, - pub rank: String, // TODO: unknown + pub rank: Option, pub disabled: String, // TODO: unknown pub audio: String, // TODO: unknown pub usage_en: String, // TODO: unknown -- cgit 1.4.1