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