diff --git a/database/src/lib.rs b/database/src/lib.rs index fb76482..af65ff1 100644 --- a/database/src/lib.rs +++ b/database/src/lib.rs @@ -48,7 +48,7 @@ pub fn get_accessions( .chunks(1000) .into_iter() .for_each(|chunk| { - let data = uniprot_entries.filter(uniprot_accession_number.eq_any(accessions)).load(conn); + let data = uniprot_entries.filter(uniprot_accession_number.eq_any(chunk)).load(conn); if data.is_ok() { result.extend(data.unwrap()); }