Skip to content

Commit

Permalink
Forgot to use variable chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed Aug 28, 2024
1 parent d67057c commit 0131986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 0131986

Please sign in to comment.