From 96df2fb1485e248a99fb9fa88d461c0c286c89c7 Mon Sep 17 00:00:00 2001 From: Elias Projahn Date: Fri, 9 Oct 2020 20:23:54 +0200 Subject: [PATCH] Fix loading of instrumentations --- src/database/database.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/database/database.rs b/src/database/database.rs index e28f976..e41e3ce 100644 --- a/src/database/database.rs +++ b/src/database/database.rs @@ -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(),