test: import database integration (#2803)

* feat: support importing database raw data

* feat: verify import database test

* test: fix test

* ci: update integration test ci config

* ci: codecov with os flag

* ci: update docker command

* ci: update docker command

* ci: update docker command

* ci: update docker command

* test: add filter test
This commit is contained in:
Nathan.fooo
2023-06-15 22:43:07 +08:00
committed by GitHub
parent 430325c731
commit d96a1d8bd4
35 changed files with 732 additions and 140 deletions

View File

@ -36,7 +36,7 @@ impl ChecklistCellData {
if total_options == 0 {
return 0.0;
}
(selected_options as f64) / (total_options as f64)
((selected_options as f64) / (total_options as f64) * 10.0).trunc() / 10.0
}
pub fn from_options(options: Vec<String>) -> Self {