From ffcbce12ee94e2a7f8e58ba4a0a9a312a8bc89ee Mon Sep 17 00:00:00 2001 From: Jan Ullmann <102742052+ullmannJan@users.noreply.github.com> Date: Thu, 31 Oct 2024 17:19:00 +0100 Subject: [PATCH] bugfix --- src/measury/data_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/measury/data_handler.py b/src/measury/data_handler.py index 1fc472f..936ee76 100644 --- a/src/measury/data_handler.py +++ b/src/measury/data_handler.py @@ -476,10 +476,10 @@ def calculate_results(self): ]: exponent_string = "" exponent = 1 - if unit[-1] == ["²"]: + if unit[-1] == "²": exponent = 2 exponent_string = unit[-1] - if unit[-1] == ["³"]: + if unit[-1] == "³": exponent = 3 exponent_string = unit[-1]