Make prev_data a list by default

This commit is contained in:
folex 2020-10-29 15:35:05 +03:00
parent 42375f3334
commit bfc69c8104

View File

@ -73,7 +73,7 @@ impl AquamarineVM {
let prev_data_path = self.particle_data_store.join(particle_id); let prev_data_path = self.particle_data_store.join(particle_id);
// TODO: check for errors related to invalid file content (such as invalid UTF8 string) // TODO: check for errors related to invalid file content (such as invalid UTF8 string)
let prev_data = std::fs::read_to_string(&prev_data_path).unwrap_or(String::from("{}")); let prev_data = std::fs::read_to_string(&prev_data_path).unwrap_or(String::from("[]"));
let args = vec![ let args = vec![
IValue::String(init_user_id.into()), IValue::String(init_user_id.into()),
IValue::String(aqua.into()), IValue::String(aqua.into()),