about summary refs log tree commit diff
path: root/corp/russian/data-import
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-01-25T09·50+0300
committerclbot <clbot@tvl.fyi>2023-01-25T10·46+0000
commitd05c38050438d8717403a27c8e5c7a5a6a76cbfb (patch)
tree3f2c20a1916e9052400274e9b8f54ec5000ad200 /corp/russian/data-import
parente0b05c0fa6562bc7d3c87a66c6557ad74fdbbd8f (diff)
fix(corp/data-import): `rank` is an integer field r/5755
Change-Id: Ifc9cd46e5b5521096db19628bd8bcf026106dcc9
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7926
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'corp/russian/data-import')
-rw-r--r--corp/russian/data-import/src/db_setup.rs2
-rw-r--r--corp/russian/data-import/src/or_parser.rs2
2 files changed, 2 insertions, 2 deletions
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<usize>,
-    pub rank: String,         // TODO: unknown
+    pub rank: Option<usize>,
     pub disabled: String,     // TODO: unknown
     pub audio: String,        // TODO: unknown
     pub usage_en: String,     // TODO: unknown