From 418e9144d5059212693c3f848ecf095dbb0f690a Mon Sep 17 00:00:00 2001 From: Viljami Ilola <+@hix.fi> Date: Sat, 27 Apr 2024 23:15:55 +0300 Subject: fix default settings getter --- src/sliceitoff/settings/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sliceitoff/settings/settings.py') diff --git a/src/sliceitoff/settings/settings.py b/src/sliceitoff/settings/settings.py index 7ecfbf3..992971b 100644 --- a/src/sliceitoff/settings/settings.py +++ b/src/sliceitoff/settings/settings.py @@ -69,7 +69,7 @@ class Settings: v = self.get_value(option) if v: return v - return [x[1] for x in DEFAULT_SETTINGS if x[0]==option][1] + return [x[1] for x in DEFAULT_SETTINGS if x[0]==option][0] def put_value(self, option, value): """ Puts single value with option name """ -- cgit v1.2.3