add: move new block feature to a setting

This commit is contained in:
trisua 2025-06-30 18:10:00 -04:00
parent d6348f7d67
commit d90b08720a
4 changed files with 32 additions and 6 deletions

View file

@ -89,11 +89,14 @@ impl DataManager {
&self,
initiator: usize,
associated: &Vec<usize>,
do_associated: bool,
) -> Vec<usize> {
let mut associated_str = String::new();
for id in associated {
associated_str.push_str(&(" OR initiator = ".to_string() + &id.to_string()));
if do_associated {
for id in associated {
associated_str.push_str(&(" OR initiator = ".to_string() + &id.to_string()));
}
}
// ...