From e3e852da8b7729d33cca9bda2842aeb952820375 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 9 Oct 2011 19:13:05 +0200 Subject: [PATCH] Use same variable in environment --- couchpotato/environment.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/couchpotato/environment.py b/couchpotato/environment.py index d4bf4eac..0b20063f 100644 --- a/couchpotato/environment.py +++ b/couchpotato/environment.py @@ -37,12 +37,13 @@ class Env: @staticmethod def setting(attr, section = 'core', value = None, default = ''): + s = Env.get('settings') + # Return setting if value == None: - return Env.get('settings').get(attr, default = default, section = section) + return s.get(attr, default = default, section = section) # Set setting - s = Env.get('settings') s.set(section, attr, value) s.save()