Fix loading of instrumentations

This commit is contained in:
Elias Projahn 2020-10-09 20:23:54 +02:00
parent 0adbc889b2
commit 96df2fb148

View file

@ -150,7 +150,7 @@ impl Database {
.expect("Failed to load instrumentations!") .expect("Failed to load instrumentations!")
.iter() .iter()
.map(|instrumentation| { .map(|instrumentation| {
self.get_instrument(instrumentation.id) self.get_instrument(instrumentation.instrument)
.expect("Could not find instrument for instrumentation!") .expect("Could not find instrument for instrumentation!")
}) })
.collect(), .collect(),
@ -174,7 +174,7 @@ impl Database {
.expect("Failed to load part instrumentations!") .expect("Failed to load part instrumentations!")
.iter() .iter()
.map(|part_instrumentation| { .map(|part_instrumentation| {
self.get_instrument(part_instrumentation.id) self.get_instrument(part_instrumentation.instrument)
.expect("Could not find instrument for part instrumentation!") .expect("Could not find instrument for part instrumentation!")
}) })
.collect(), .collect(),