Rewrite words and groups into result

This commit is contained in:
micialware committed 2026-08-24 18:46:54 +03:00
1 parent c56d135ce8
commit 5a6747030b
7 files changed
+99 -70

No files matched your search

+2 -2
View File
@@ -444,7 +444,7 @@ impl ImportState {
};
{
let state = state.lock();
add_group(&mut group_entity, &state.connection);
add_group(&mut group_entity, &state.connection)?;
}
let group_id = group_entity.id;
@@ -484,7 +484,7 @@ impl ImportState {
let mut index = 0;
let total_len = words_list.len() as f32 / 1024.0;
for word in &mut words_list.chunks_mut(1024) {
add_words(word, connection);
add_words(word, connection)?;
index += 1;
let mut progress = progress.lock();
*progress = (index as f32 / total_len).min(1.0);