More migration code

This commit is contained in:
2026-08-18 12:58:02 +03:00
parent 97c76350e1
commit 9e28b05167
4 changed files with 61 additions and 97 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ fn parse_history_items(strings: Vec<String>) -> Vec<HistoryItem> {
if let [time, word, mode, before, after] = string.split(';').collect::<Vec<&str>>()[..] {
items.push(HistoryItem {
timestamp: DateTime::from_timestamp(time.parse().unwrap(), 0).unwrap(),
word_id: word.parse::<u32>().unwrap().into(),
word_id: word.parse::<Id>().unwrap().into(),
mode: match mode.parse::<u8>().unwrap() {
2 => WordOpenMode::Hard,
3 => WordOpenMode::Ok,