Skip to content

Commit

Permalink
[IN PROGRESS] testing
Browse files Browse the repository at this point in the history
  • Loading branch information
khb7840 committed Oct 16, 2024
1 parent 1e0330c commit 926dc50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cli/workflows/query_pdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,10 @@ pub fn query_pdb(env: AppArgs) {
&log_msg(FAIL, &format!("Failed to write to file: {}", &output_path))
);
}
for (_k, v) in queried_from_indices.iter() {
let mut id_container = String::new();
for (_k, v) in queried_from_indices.iter_mut() {
parse_path_by_id_type_with_string(v.id, &id_type, &mut id_container);
v.id = Box::leak(id_container.clone().into_boxed_str());
writer.write_all(format!("{:?}\t{}\t{}\t{}\n", v, query_string, pdb_path, index_path.clone().unwrap()).as_bytes()).expect(
&log_msg(FAIL, &format!("Failed to write to file: {}", &output_path))
);
Expand Down

0 comments on commit 926dc50

Please sign in to comment.